Member Avatar for Bo_1

Just started to use Delhi XE4 and found that LongMonthNames wouldn't compile. Error E2003 Undeclared Indentifier 'LongMonthNames'.
Went to XE3 with the same error, Delphi 2009 with no problem.
Just create a new VCL project with only statment S:=LongMonthNames[12]; will give the error. System.SysUtils is used and the definition is there.
Any clue sombody?
Thanks Bo

Recommended Answers

All 2 Replies

Try using FormatSettings.LongMonthNames[12]. I assume you declared S as a String.

Member Avatar for Bo_1

You are correct, problem solved, thank's a lot!
I couldn't read the help text correct...
Regards Bo

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.