Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with SUBSTR(SYS(2015),3,10)
Message
De
14/07/2003 01:09:46
Gavin Reid
L & M Marketing Pty Ltd
Frenchs Forest, Australie
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Problem with SUBSTR(SYS(2015),3,10)
Divers
Thread ID:
00809725
Message ID:
00809725
Vues:
68
Hi All,

In the VFP6.0 help for SYS(3) it states the following:
SYS(3) may return a non-unique name when issued successionally on a fast
computer. Use SUBSTR(SYS(2015), 3, 10) to create unique, legal eight
character file name.
I use the above technique to create a string which in turns is used as the name for a cursor. As of Today ( 14 July ) using the above method returns a string that starts with 0 ( zero ) which causes an error when creating the cursor as cursor names don't seem to be allowed to start with a numeric. I've worked around the problem by adding a non numeric character to the start of the string and it works fine.

I assume the problem has something to do with not being allowed an alias that starts with a numeric.

Regards,
Gavin.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform