Eric den Doop
2003-07-15 16:58:44 UTC
Hello, All!
In many apps, I use the SYS(2015) to generate temporary file names and
cursor names. I use the trick that is described in VFP Help for SYS(3):
valid_filename = SUBSTR(SYS(2015), 3, 10)
Since yesterday the SUBSTR(SYS(2015), 3, 10) function returns file names
that begin with a number which is ok for files but really screws up your app
if you, like me, are using it for cursor names. I was able to fix this
problem quite easily by using the search and replace feature in VFP to add a
"_":
valid_filename = "_" + SUBSTR(SYS(2015), 3, 10)
Just wanted to share this information with you.
By the way: does anybody know how the SYS(2015) algorithm works?
In many apps, I use the SYS(2015) to generate temporary file names and
cursor names. I use the trick that is described in VFP Help for SYS(3):
valid_filename = SUBSTR(SYS(2015), 3, 10)
Since yesterday the SUBSTR(SYS(2015), 3, 10) function returns file names
that begin with a number which is ok for files but really screws up your app
if you, like me, are using it for cursor names. I was able to fix this
problem quite easily by using the search and replace feature in VFP to add a
"_":
valid_filename = "_" + SUBSTR(SYS(2015), 3, 10)
Just wanted to share this information with you.
By the way: does anybody know how the SYS(2015) algorithm works?
--
Eric den Doop
www.foxite.com - The Home Of The Visual FoxPro Experts - Powered By VFP8
Eric den Doop
www.foxite.com - The Home Of The Visual FoxPro Experts - Powered By VFP8