Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to tell if file string is and .dbf?
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00398179
Message ID:
00398211
Views:
35
>I find string handling routines one of the most difficult things about the foxpro language syntax. I always go to the "ST" in the reference and find very little on functions/routines on strings. Does someone have a cheatsheat?
>
>Anyway, I have a filename with a path and want to know if the file is an *.dbf. should not be difficult, but i have not been able to do it.
>
>c:\something\somethingelse\data.dbf
cstr = 'c:\something\somethingelse\data.dbf'

ldbf = IIF(UPPER(SUBSTR(cStr,AT('.',cstr)+1,3))='DBF',.T.,.F.)
?ldbf
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Previous
Reply
Map
View

Click here to load this message in the networking platform