Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing a value to a PRG with PARAMETERS
Message
De
19/11/2001 11:22:38
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00583456
Message ID:
00583502
Vues:
28
>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,
Nothing seems wrong syntactically (except closing dblquote typo). lnValue is passed by reference (assuming defaults not touched) and any code changing its type in between should produce this error + the situation Rich mentioned.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform