----- Original Message ----- From: "Lawrence Lustig" <[EMAIL PROTECTED]> To: "RBG7-L Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, July 29, 2004 3:13 PM Subject: [RBG7-L] - Re: PROPERTY SELECTION
> > GETPROPERTY <ComponentID> LISTCOUNT 'vCount' -- get > > the count > > set var vIndex Text = (ctxt(((int(.vCount))-1))) -- > > decrement the count by 1 > > The list is alpha ordered, and the new item may not be > at the end of the list -- is that an assumption of the > above technique? No. Not in a "SORTED" list. It is in instances such as this that I use a Hidden ListBox. You can add the Items to the Hidden Listbox, check for the Item, SaveToFile, then LoadFromFile to the ComboBox "SORTED". It all happens very quick, so the workaround isn't something the user is aware of. The Alternative is to iterate through the ComboBox, 0 to ListCount -1 and check for the value of the text at that ItemIndex.. > Larry >
