Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing a value to a PRG with PARAMETERS
Message
From
19/11/2001 11:02:58
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00583456
Message ID:
00583481
Views:
20
Your code worked fine when I tested it also. I WAS able to reproduce your error by having a field "lnValue" in MyTable but having this field defined as character. Doubt that's your problem but I thought I'd mention it anyway.

......Rich


>Hi - I am having a problem passing a value from the click event of a button to a PRG file with PARAMETERS - I think it may be a syntax problem...
>
>In the click of the button
>
>lcSql = "SELECT * FROM myTable INTO CURSOR myCursor
>lnValue = 1
>
>do myProgram with lcSql, lnValue
>
>In the program
>
>PARAMETERS lcSql, lnValue
>
>&lcSql
>
>if lnValue = 1
>etc
>endif
>
>I get an Operator/operand mismatch error with the if lnValue line of code...
>
>Any ideas?
Previous
Reply
Map
View

Click here to load this message in the networking platform