Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to tell if a procedure is already loaded.
Message
De
15/01/2007 12:38:44
 
 
À
15/01/2007 11:47:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01185631
Message ID:
01185651
Vues:
12
>Thanks Tore,
>
>This works during runtime which is perfect. So I will only need to load my procedure if its not already loaded.
If addProc('myprocedure'
  wait "Myprocedure was already added" window timeout 3
Endif
...
Function addProc
  Lparameters lcProcedure
  Local llReturn
  If Not Upper(lcProcedure) $ Upper(Set("Procedure"))
    Set Procedure To (lcProcedure) Additive
  Else
    llReturn=.T.
  Endif
Return llReturn
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform