Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding and removing a class based object
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Adding and removing a class based object
Divers
Thread ID:
00709847
Message ID:
00709847
Vues:
46
I am using the sfquery.vcx class to create a filter on my data. Right now I just drop the sfquery.vcx onto the form and call it. The problem is it doesn't refresh it's fields listing if the data environment changes underneth it (I use sql2000 for the backend and no matter what query the user select, it assigns it to the same cursor name sqlresult). So to reset the filter, currently the user has to close the form and reopen it. I was thinking that if I added the sfquery with code, then I could drop it and readd it each time they pressed the filter button and it would hopefully reset.

From the command window I can create the object using:

oQuery=NewObject("sfquery","c:\ctsql\stone\sfquery\sfquery.vcx")

But I'm not sure how to do this from within the form so it becomes an object of the form.

Any help appreciated.

Kirk
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform