I have been using Delphi for more than 10 years and I have run in to a problem that I have never seen before. I have converted the current date to a string, "20091115' and I want to convert it to an integer. i have also tried to convert '2009', '11' and '15' and get the same message as follows:
E2171 Variable 'CurrYearMonDay' inaccessible here due to optimization.
How do I solve this problem?
E2171 Variable 'CurrYearMonDay' inaccessible here due to optimization.
How do I solve this problem?