Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checking for method existing
Message
From
01/10/2003 17:37:10
 
 
To
01/10/2003 17:10:21
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00833962
Message ID:
00833993
Views:
17
So you're trying something like this:
PemStatus(oform.myObject,"myMethod",5))
First, you have to verify that myObject exists, which you can do with vartype
e.g.
If Vartype(oform.myObject)="O" ;
      and PEMStatus(oform.myObject,"myMethod",5)
   ** it exists
  EndIf
EndIf
>Thanks, but it does not work if the method does not exist.
>
>I have "Property myObject is not found"
>
>Tia.
Insanity: Doing the same thing over and over and expecting different results.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform