G'day Jimmy,
Of course, the docs are slightly misleading. You should use
right(sys(2015), 8) or
SUBSTR(SYS(2015), 3) or even
SUBSTR(SYS(2015), 3, 8) to 'create unique, legal eight character file name'. The call in the docs implies that you will get 10 characters, starting at the third character of the
sys(2015). In fact,
sys(2015) only returns 10 characters in total and so the code in the docs works anyway. I thought there was a DOCERR KB article about this, but I can't find it.
Cheers,
Andrew
>Sorry, I have found the solution.
>Next time I will search a litlle longer before I disturb you with such a easy question.
>
>
>1000 times sorry
>
>This is what I found in the MSDN
>
>'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.' msdn98
If we were to introduce Visual FoxBase+, would we be able to work from the dotNet Prompt?
From Top 22 Developer Responses to defects in Software
2. "It’s not a bug, it’s a feature."
1. "I thought I fixed that."
All my FoxTalk and other articles are available on my
web site.
Unless specifically identified otherwise, anthing posted here is purely my opinion and may or may not reflect the policies or practices of Microsoft.