You are not logged in. You can browse in the PowerBASIC Community, but you must click Login (top right) before you can post. If this is your first visit, check out the FAQ or Sign Up.
they are very good to use and also includes this one for %lb_selectstring,
which i guess is what you are looking for.
<font face="courier new, courier" size="3"><pre>
'------------------------------------------------------------------------------
' title: lbselectstring
' desc: select an item in a listbox by its text (or partial text).
' syntax: retval = lbselectstring(hlistbox, startposition, text$)
'remarks: the return value is the index of the selected item if the search was
' successful. the return value is %lb_err if the search was
' unsuccessful and the current selection is not changed.
'
function lbselectstring(byval hlistbox as long, byval start as long, _
byval text as string) as long
function = sendmessage(hlistbox, %lb_selectstring, start, strptr(text))
end function
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, and to analyze site activity. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Comment