Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object in form tests T for existance then error
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Novell 5.x
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01106772
Message ID:
01106796
Views:
21
Naomi,

OK, tried that ... actually augmented my code with your suggested test as follows:
* point a
IF PEMSTATUS(THISFORM, 'oMainPane', 5) and ;
      vartype(thisform.oMainPane.name) = 'C'

   *point b

   thisform.removeobject( 'oMainPane' )

ENDIF
Now, let me provide further information: I have wait windows for debugging at points a and b and the object really IS there. After the error occurs and I suspend, I test again and the object is in fact NOT there.

I didn't really expect that the addition of a test for type(objectname)="C" would have any effect, but I did include it just in case - because I recognize that I am not infallible - but it made no difference.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform