Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to determine if SP function exist
Message
From
15/09/2004 05:53:18
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00942105
Message ID:
00942294
Views:
32
SET DATABASE TO MyDatabase
fTmp = DEFAULTEXT(ADDBS(SYS(2023))+SYS(2015),'tmp')
LIST PROCEDURES TO FILE (m.fTmp) NOCONSOLE
? SPACE(2)+'myprocedure' $ FILETOSTR(m.fTmp)
ERASE (m.fTmp)
* put procedures into a array
SET DATABASE TO MyDatabase
fTmp = DEFAULTEXT(ADDBS(SYS(2023))+SYS(2015),'tmp')
LIST PROCEDURES TO FILE (m.fTmp) NOCONSOLE
FOR I=1 TO ALINES(aSP,STREXTRACT(FILETOSTR(m.fTmp),SPACE(2)),.T.)
 ? aSP[m.i]
NEXT
ERASE (m.fTmp)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform