Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SUBSTR (SYS (2015), 3, 10)
Message
 
 
To
30/10/1998 13:13:35
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00152929
Message ID:
00153445
Views:
23
>I'm using VFP 6.0 under Nt4

>when i use substr(sys(2015), 3, 10). Sometimes i receive a numeric for the first character. Is it possible ???

>Can anyone help with this?

>Thanks,

>Alain

tempfilename = left(sys(2015), 8) + '.dbf'
** returns an 8 pos string starting with an underscore
if file (tempfilename)
tempfilename = left(sys(2015), 8) + '.dbf'
endif
** since 8 character is not guaranteed unique, ask if already a file and keep
** trying until it is not a file.

brenda
Previous
Reply
Map
View

Click here to load this message in the networking platform