Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to tell if a procedure is already loaded.
Message
From
15/01/2007 12:38:44
 
 
To
15/01/2007 11:47:48
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01185631
Message ID:
01185651
Views:
11
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform