Quantcast
Channel: Silk Performer
Viewing all articles
Browse latest Browse all 4084

Wiki Page: Silk Performer 9.5 compilation error “Compile error SYN124: unexpected token in this section” after using Customize Value wizard

$
0
0

Problem:

Silk Performer 9.5 returns compilation error message: “Compile error SYN124: unexpected token in this section” after using “Customize Value” wizard.

Resolution:

This error happens only when there is no empty line between the use "kernel.bdh" line and the var declaration line and after the Customize Value... wizard is used to create new parameter from a customizable value.

This error message can be reproduced in Silk Performer 9.5 with following below steps:

1) Open a test script in Silk Performer workbench.

2) Ensure that there is no empty line separating the ”kernel.bdh” line and the “var” declaration line. Below snippet shows such an example:

3) Move the mouse to the some customizable value (for example, a string value) and select Customize Value… from the context menu.

4) Select Create new parameter and click Next.

5) Select Parameter from Multi-column Data File and click Next.

6) Select the column that you like to use and Click Next.

7) Choose a row selection order, for example, Random and click Finish.

Upon completion of this customization, you will see in the modified script that Silk Performer had inserted new variables into the script. However, there is an issue with the positioning of the variable. We will use the following example to illustrate. In the sample below, the newly inserted hAirports1 variable (a file handle to the data file) is not placed under the var section.                    

 

Without the var declaration in front of the “hAirports1        : number; “ line.  Silk Performer will report the error in this article when the script is compiled.The same problem also happens in Silk Performer 9.0.

The workaround solution is to ensure that one empty line exists between the ”kernel.bdh” line and the “var” declaration in the script before running the Customize Value wizard. This issue will be fixed in the next major release.

SI: 2610826

 


Viewing all articles
Browse latest Browse all 4084

Trending Articles