Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SUBSTR (SYS (2015), 3, 10)
Message
 
 
À
30/10/1998 13:13:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00152929
Message ID:
00153445
Vues:
22
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform