FormatDate and file creation
Posted: Sat Apr 24, 2010 8:26 pm
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
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