Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detecting registered functions
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00227758
Message ID:
00227776
Vues:
18
nd create methods to invoke the various calls for you.

The DECLAREs will occur exactly once, when the object is instantiated from the class; if the object is scoped globally to the app (either added to a common VFP object like _SCREEN via ADDOBJECT(), or created as a PUBLIC variable, then you can simply check if the object exists and create it if it doesn't:
IF ! TYPE('_SCREEN.oMyZipObject')
   SET CLASSLIB TO <i>your zip classlib</i> ADDITIVE
   _SCREEN.AddObject('oMyZipObject',<i>your zip class name</i>)  
ENDIF
If the object exists, you invoke your methods just like any other VFP object; by putting it in _SCREEN, it's always addressible and visible.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform