Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Update vs. insert
Message
 
 
To
30/07/2001 16:53:14
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00537366
Message ID:
00537572
Views:
11
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform