Hello,
Is this bug or too easy to understand?
Tested with PB 4.41 x86 Windows.
Code
-----
filename.s = FormatDate("%yyyy-%mm-%dd_%hh:%mm", Date()) + ".txt"
CreateFile(0, "c:\" + filename)
Result
------
Filename created is too short: 2010-04-24_22
FormatDate and file creation
- Kaeru Gaman
- Addict

- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
Re: FormatDate and file creation
a colon is not a legal char for a filename.
oh... and have a nice day.
Re: FormatDate and file creation
':' is not allowed in a filename on the windows OS.
@Edit: too slow.
@Edit: too slow.
Re: FormatDate and file creation
Of course. Blind me.
Thanks!
Thanks!
