Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Requery ?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01474625
Message ID:
01474649
Views:
29
Again I don't have VFP available here (I'm in KC at the moment) and I haven't used it in a while, but..)

First off, make sure you check to see if the grid exists before trying to remove it - something like 

If vartype(ThisForm.grdFindQuote)<>'U' (I think that's right..)

Then to instantiate the grid use ThisForm.addObject("grdFindQuote") ..

I'm getting rusty - there is Addobject and NewObject - one lets you specify the classlib and one uses the currently selected classlib IIRC.

Once you instantiate it, you'll need to set Top and Left values to position it and set recordsource if it wasn't already specified in the class.
____________________________________

Don't Tread on Me

Overthrow the federal government NOW!
____________________________________
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform