Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Update vs. insert
Message
 
 
À
30/07/2001 16:53:14
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00537366
Message ID:
00537572
Vues:
10
Nancy,

I did say "sometimes" isn't that wheedle worded enough for ya? *s*

I have had form level property throw errors like this in parameterized views.

>I'd buy that except that thisform.someproperty works okay.
> PROCEDURE command1.Click
> UPDATE TEMP SET C1 = THISFORM.Text1.VALUE WHERE N1 = 2 && This line will cause an error.
> *!* UPDATE TEMP SET C1 = THIS.PARENT.Text1.VALUE WHERE N1 = 2 && This line will cause an error.
> *!* UPDATE TEMP SET C1 = EVALUATE("THIS.PARENT.Text1.VALUE") WHERE N1 = 2 && This line will cause an error.
> *!* UPDATE TEMP SET C1 = THISFORM.cValue WHERE N1 = 2 && This line will not cause an error.
> *!* UPDATE TEMP SET C1 = EVALUATE("THIS.PARENT.Text1.VALUE") WHERE N1 = THISFORM.Text2.VALUE && This line will cause an error.
> *!* UPDATE TEMP SET C1 = THISFORM.cValue WHERE N1 = THISFORM.Text2.VALUE && This line will not cause an error.

> ENDPROC
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