Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Insert command prompting for value
Message
 
 
À
08/06/2006 10:49:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01127719
Message ID:
01127916
Vues:
18
Jerry,
local xyz
xyz = 123
SQLExecWrapper( "insert into x values ( ?m.xyz ) " )

function SQLExecWrapper( lcSQL )
lnResult = SQLExec( gnHandle, lcSQL )
if ( lnResult < 1 )
   aerror( gaSQLError )
endif
return
xyz is not a variable that is in scope when the function runs so the SQL engine will prompt you for the value.

>Thanks. I removed some of the fields to use as an example. The example that I used in my first message had an extra comma after the second field. Other than that, it is the same code.
>I tried declaring the memvars to private and that did not work.
>Also, not sure what you mean by the "variables not being in scope".
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform