This is not documented, but it returns the number of seconds since midnight. It's similar to SECONDS(), except that it returns a string rather than a number.
This raises two questions:
- How did you come across this function?
- If you didn't know what it was for, why did you want to use it?
how come mine [sys(1004)] returns a number that goes up and down?
Obvious, really. It's because I was wrong.
Mine seems to stay the same if I keep executing it repeatedly. If I execute some other commands in between, it goes up. If I do a CLEAR ALL and RELEASE ALL, it goes down.
In just playing around it looks like there are other undocumented SYS() commands. e.g. repeated ?SYS(1005) seems to create a 5 character number that auto-increments by 1 in VFP 7.
I don't know what it is either, but it's been in FoxPro since at least FP 2.0! (I just checked.) And it appears to function the "same" in each version since, although the numbers are all different.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.