>Hi everybody !
>
>I would like to know How does VFP create the eight characters temporal file names?
>
>Thanks in advance
>Martin Alcaraz
>malcaraz@rtn.uson.mx
Martin,
It uses system clock.
sys(2015) returns 10 char value guaranteed to be unique on a given computer even if called in the same millisecond.
sys(3) is another one returning 8 digits 'almost' unique filename.
Use sys(2015) to create temp files.
If you need absolutely 8 in lenght, thinking a temp file's lifecyle is not long, you could use :
'_'+substr(sys(2015),4)
or make 2 chars part of extension :
stuff(sys(2015),9,0,'.')
Cetin