Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Update SQL
Message
 
 
À
20/07/2003 12:03:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00811836
Message ID:
00811838
Vues:
35
Gaylen,

You have to pull the value to a memvar before you use it in a SQL command. This is because the SQL actually executes outside the form method.

>How do I reference thisform.xxx.value in an update?
>
>
>update tablex set field1 = thisform.xxx.value
>
>
>VFP thinks thisform.xxx.value is an alias. I can assign the variable to a memory value before the insert and use it and it works fine. I've used (thisform.xxx.value) and macro substitution to no avail.
df (was a 10 time MVP)

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

Click here to load this message in the networking platform