Codepage Check

One of the most important things to know about Silk Performer's multibyte support is that the system codepage of the recording machine must match the system codepage of the replay machine. This is necessary for the replay engine to correctly interpret the byte sequences in the script as characters and strings.

Therefore the Silk Performer Recorder scripts the @codepage annotation into the script along with the currently active system codepage. Whenever this annotation is present in a script the Silk Performer runtime system checks if the system codepage of the machine matches the one specified in the script. If they do not match the runtime stops and an error message displays. However, you can add a second parameter to the @codepage annotation with the value false. In this case an information displays but the execution continues.

Syntax

@codepage( in codepage        : number,
           in abortOnMismatch : boolean optional := true )

Example

@codepage(123)          // aborts the execution when the codepages do not match
@codepage(123, false)   // an information indicates the mismatch, but the execution continues