Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get the file extension
Message
From
02/06/2005 11:43:42
 
 
To
02/06/2005 09:53:09
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01019324
Message ID:
01019426
Views:
17
Hello,

in most cases.

e.g.
lcValue = 'Alias.SomeField'
?JUSTEXT(lcValue) && = 'someField'
?SUBSTR(lcValue,RAT(".",lcValue)+1) && = 'someField'

lcValue = 'someField'
?JUSTEXT(lcValue) && = '' -> since no '.' in the string means no extension ..
?SUBSTR(lcValue,RAT(".",lcValue)+1) && = 'someField' -> since RAT returns 0 if no point in string
cause i was sure that i always specified alias+fieldname in my controlsources it was save to use justext()


Regards
Christian
Previous
Reply
Map
View

Click here to load this message in the networking platform