Subject: | Re: Listbox Selection
| Date: | Wed, 22 May 2019 10:23:05 -0400
| From: | "Steven Green" <greens@diamondsg.com>
| Newsgroups: | pnews.paradox-programming
|
regardless of how you attack the list, dealing with the list is just like
dealing with an array (that starts at 0 instead of 1).. the help makes the
options pretty simple
--
Steven Green
Myrtle Beach, South Carolina, USA
http://www.OasisTradingPost.com
Collectibles and Memorabilia
Vintage Lego Sets and Parts
- and Paradox support, too
"Kevin Baker" wrote in message news:5ce3e9c8$1@pnews.thedbcommunity.com...
Hi Everyone!
Is there another way to find an item in a listbox, then highlight
(select) than item, other than the way I'm doing it below:
var
varid smallInt
varName string
loFound logical
endvar
loFound=False
MyList.MyList_List.action(MoveBeginLine) ;start at the top
varid=0
While loFound=False
varid=varid+1
MyList_List.list.selection=varid ;get the number of the current item
varName=MyList_List.list.value ;put list name in the var
if varListName="MySearchValue" then ;is this what I'm looking for?
MyList_List.list.selection=varid
loFound=True
else
loop
endif
endWhile
Thanks,
Kevin
|