Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Category:
Coding, syntax & commands
>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?
Chris,
I tested your code and it works fine for me. Do you have a problem with the scoping of lnValue perhaps?
Renoir
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only