Error message with FS, BCB5, C++Script

edited 12:11AM in FastScript
Hi, I am experienced with FR but am starting with FS.

Using BCB5, I put a TfsScript and TfsCPP on my form. I set the SyntaxType property of the TfsScript to C++Script. For the script itself, I simply use one of the demos that comes with FS (below).

When I call fsScript1->Run(), I get an "Unknown type: integer" exception. How should I fix it?

Here is the script:
/****************************/
/* FastScript v1.0 */
/* String demo */
/****************************/

int i, j;
string s;

void OK(int n)
{
ShowMessage(n);
}

{
s = "Hello World!\n\rIt's working!";

j = 0;
for(i=1;i<=Length(s);i++)
if (s == " ")
j++;

OK(j);
}

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.