SiComponents Home Page SiComponents Forums
Here you will be able to get help and share your experience
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

retreiving original text out of a multiline

 
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite
View previous topic :: View next topic  
Author Message
cdsnl



Joined: 23 Aug 2004
Posts: 12

PostPosted: Thu Jun 29, 2006 11:15 am    Post subject: retreiving original text out of a multiline Reply with quote

Hi,

I have a TCombobox with several items in English. I have translated the items also in Dutch in Multilines. This all works fine.

But now I need the original english text of the selected item and not the Dutch one. Without putting ActiveLanguage to 1.

I have tried it with
cField:=siLang1.GetStringValue(@siLang1.MultiLines, cbxSearchOn.text, 1);

But that does not work.

Any ideas?

Thanks
Andre
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2103

PostPosted: Thu Jun 29, 2006 1:53 pm    Post subject: Reply with quote

You just need to use it as the following:
Code:

cField := siLang1.GetStringValue(siLang1.MultiLines, 'cbxSearchOn.Items', 1);

The second parameter is the ID of string in TsiLang's list (and I suppose cbxSearchOn.Items points to Items property of your combobox). This will return you the content of Items property for the first language.
Back to top
View user's profile Send private message
cdsnl



Joined: 23 Aug 2004
Posts: 12

PostPosted: Thu Jun 29, 2006 2:21 pm    Post subject: Reply with quote

Thanks Igor,

It works so far that I get a string with all the items. It is also possible to get only the value which is selected or do I have to get it myself using the cbxSearchOn.ItemIndex.

Thanks
Andre
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2103

PostPosted: Thu Jun 29, 2006 3:56 pm    Post subject: Reply with quote

Yes, you will need to extract needed item from retrieved text.
Back to top
View user's profile Send private message
cdsnl



Joined: 23 Aug 2004
Posts: 12

PostPosted: Fri Jun 30, 2006 8:28 am    Post subject: Reply with quote

thanks
andre
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by p h p B B  © 2001, 2005 p h p B B  Group