Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing a value to a PRG with PARAMETERS
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00583456
Message ID:
00583465
Vues:
23
>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
>
 local lcSql, lnValue
>lcSql = "SELECT * FROM myTable INTO CURSOR myCursor"
>lnValue = 1
>
>do myProgram with lcSql, lnValue
>
>In the program
>
>lPARAMETERS tcSql, tnValue
>
>&tcSql
>
>if tnValue = 1
>etc
>endif
>
>I get an Operator/operand mismatch error with the if lnValue line of code...
>
>Any ideas?

I think, it's a problem with scope of parameters. Try the changes I made in the code...
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform