Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Finding all Used Classes in an Application
Message
 
À
24/10/2001 13:20:43
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00572750
Message ID:
00572810
Vues:
33
This message has been marked as a message which has helped to the initial question of the thread.
Hi Renior,

I had to do something similar a couple of weeks ago (looking for cursors). I wrote a quick and dirty utility to open each form as a table and only grab curors from the CLASS column.

In your case, I experiments with this SQL select statement

Select Class, ClassLoc FROM MyForm.scx WHERE !EMPTY(classloc)

The Class column gave me the control class used by on the form. ClassLoc gave be me the name (and path) of the ClassLib.

You could use Adirs() to get a list of all forms, a for loop to open each form as a table, process the select statement, and use STRTOFILE (or FPUTS) to load the infor to a text file, or load an table (cForm, cControl, cClassLib).

HTH.

Robert
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform