Type 'Date' doesn't support
Brought to you by:
alexisisaac
Hi.I am trying to open a .sol file that has only one value inside. This value is date. The program crashed with error: "'01/01/1970' n'est pas une date correcte". But the date is valid, I can read it from my swf file. I wrote a siple test, to demonstarte this bug. I attach sol file. Please let me know if you need more information. I can also send you swf file and source code for this test.
Logged In: NO
Well I look inside code and find out where the problem is
It's in classes/soft.pas line 182 and 196
d:=strtodate('01/01/1970');
strtodate use default system date format by default. So works ok while you are in US.
But I am from Russia, and I have another default date format. So the program crashes.
You pass TFormatSettings as a second paramater to strToDate function to fix this problem.
Hope it helps