General information
Category:
Coding, syntax & commands
Title:
Seeking a Record in a List Box
I have found that the following code is slow, as the listbox I have is quite large.
Instead of doing the FOR...NEXT loop, is there another way to select and highlight the record in the listbox ? I know the value of mPolicy.
FOR nCnt = 1 to o.listcount
if trim(o.list(nCnt,x))+o.list(nCnt,x+2)=mPolicy
o.selectedID(nCnt)=.t.
Exit
endif
NEXT nCnt
o.click
o.setfocus
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only