Home » Developer & Programmer » Forms » Select items manually in a TList
Select items manually in a TList [message #82524] Tue, 03 June 2003 12:25 Go to next message
Ivan GarcĂ­a
Messages: 1
Registered: June 2003
Junior Member
How can I do that? I can't find anything in the help.
Thanks.
Re: Select items manually in a TList [message #82526 is a reply to message #82524] Wed, 04 June 2003 00:08 Go to previous messageGo to next message
Maaher
Messages: 7065
Registered: December 2001
Senior Member
What do you mean by select items manually?

Filling a TList can be done by:
1. Using the Property Palette. There you introduce the items yourself.
2. Filling through a Program Unit/Trigger. You can use the ADD_LIST_ELEMENT and the POPULATE_LIST built-ins.

MHE
Re: Select items manually in a TList [message #82537 is a reply to message #82524] Thu, 05 June 2003 07:47 Go to previous messageGo to next message
azic
Messages: 2
Registered: June 2003
Junior Member
I wanna say, to mark an element in the Tlist using code, like if you make click with the mouse.
Re: Select items manually in a TList [message #82543 is a reply to message #82537] Thu, 05 June 2003 23:58 Go to previous messageGo to next message
Maaher
Messages: 7065
Registered: December 2001
Senior Member
List elements are pairs of LABEL+VALUE. If you assign a value of a list element to a list item, the associated label will automatically be selected.

Shouldn't be a problem.

MHE
Re: Select items manually in a TList [message #82545 is a reply to message #82543] Fri, 06 June 2003 04:25 Go to previous messageGo to next message
azic
Messages: 2
Registered: June 2003
Junior Member
I mean select an item using the index, I forgot to write it. Something like that:

SelectItem('Tlist', index);
Re: Select items manually in a TList [message #82549 is a reply to message #82545] Fri, 06 June 2003 06:47 Go to previous message
Maaher
Messages: 7065
Registered: December 2001
Senior Member
Ahhh...I see.

You're looking for the
GET_LIST_ELEMENT_VALUE(list_name,list_index) built-in.

Look it up in Forms Help, I'm most confident It'll help you out.

MHE
Previous Topic: Enter Query in multiple blocks
Next Topic: ITEM_IS_VALID
Goto Forum:
  


Current Time: Sat Apr 20 08:10:48 CDT 2024