Greek Dates

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
andyh1234
Posts: 476
Joined: Mon Aug 13, 2007 4:44 pm
Contact:

Greek Dates

Post by andyh1234 » Sun Jan 16, 2011 11:33 am

I have a small script that grabs the months and puts them into a text field as follows...

set the text of field "calendarMonths" to the long system monthNames

It works well in English, but apparently when you set a Mac to 'Greek' it just adds ?????? for each line and not the system month.

I assume this has something to do with the unicode info, but cant seem to get it to work at all, when I get something that looks greek to display in the field then switch back to English it still all looks greek to me!

Any ideas on how I can make this work so it adds a list of system languages for any language and not just ones with 'english' characters.

Thanks

Andy

shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: Greek Dates

Post by shaosean » Sun Jan 16, 2011 2:46 pm

Have a look at the unicodeText property.

andyh1234
Posts: 476
Joined: Mon Aug 13, 2007 4:44 pm
Contact:

Re: Greek Dates

Post by andyh1234 » Sun Jan 16, 2011 4:07 pm

Thanks Sean,

Ill have a look at that...

Hopefully if I read right,

set the unicodeText of field "calendarMonths" to the long system monthNames

should do the job???

Will that affect the English names at all, or should it still be ok there too?

andyh1234
Posts: 476
Joined: Mon Aug 13, 2007 4:44 pm
Contact:

Re: Greek Dates

Post by andyh1234 » Sun Jan 16, 2011 4:12 pm

Im afraid it didnt, not sure what im doing wrong.

I created a field, and two buttons, the field is called '1'.

Button 1 is..

on mouseUp
put the (the long system monthNames) into field "1"
end mouseUp

Button 2 is..

on mouseUp
set the unicodeText of field 1 to the long system monthNames
end mouseUp

Button 1 works as expected, putting the months in to the field, but button 2 put what looks like Chinese into the field.

Im sure im missing something very simple!

Post Reply