Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Thisform can be used within a method ....
Message
 
 
To
07/05/1998 10:31:27
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00097664
Message ID:
00097732
Views:
21
Alessio,

You can not use this. or thisform. inside a .prg they only have meaning inside of a method of an object. If your UDF() need reference something from the form, send the form object as a parameter to the udf:

x = GetDate( thisform )

function GetDate( oForm )
? oForm.Caption
return date()

>I call a UDF called getdate from a form and when it processes a seek() with parameters it gives me the error "Thisform ......"
>If I ignore the error the other times I call the UDF it's all OK.
>I call this UDF even from other forms with the same statements and it never gives me any problem.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform