Error message with FS, BCB5, C++Script
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);
}
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);
}