Strings and TNT component display

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
frank
Posts: 30
Joined: Sat Apr 07, 2007 3:57 am

Strings and TNT component display

Post by frank »

Dear expert,
I store some strings in silang component, and i get it by using function gettextbyint.
Ex: tntlabel1.caption:=silang1.gettextbyint(1);

It show not correct the translation for Greek or the other languages.

I think that function return string type, and we need wide string type, right?
How can i do?
Please advice,
Thanks.
isiticov
Site Admin
Posts: 2416
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

I would suggest to use GetTextOrDefaultW() function to get string. This will return Unicode string for you.
Best regards,
Igor Siticov.
frank
Posts: 30
Joined: Sat Apr 07, 2007 3:57 am

Post by frank »

Thanks so much, it worked.
Post Reply