Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VARTYPE vs TYPE with Parent property
Message
From
25/07/2002 11:12:51
 
 
To
24/07/2002 15:52:33
Beth Wetherbee
Virginia Beach Public Schools
Virginia Beach, Virginia, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00682266
Message ID:
00682521
Views:
20
Try reversing your code. After all THIS.Parent would always result in an Object, if it doesn't we want to execute the default error routine.

IF VARTYPE(This.Parent) <> 'O'
DODEFAULT(nError, cMethod, nLine)
ELSE
This.Parent.Error(nError, cMethod, nLine)
ENDIF
Gordon de Rouyan
DC&G Consulting
Edmonton, Alberta
Email: derouyag@shaw.ca
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform