1,105,221 Community Members

LongMonthNames in Delphi XE3 and XE4

Member Avatar
Bo_1
Newbie Poster
13 posts since Sep 2013
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

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

Member Avatar
nullptr
Posting Whiz in Training
245 posts since Mar 2012
Reputation Points: 49 [?]
Q&As Helped to Solve: 48 [?]
Skill Endorsements: 2 [?]
 
0
 

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

Member Avatar
Bo_1
Newbie Poster
13 posts since Sep 2013
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

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

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article