General information
Title:
Vfp`s SEEK equivalent
hi,
here's a sample table called "fruits" with primary key "code"
code desc
----- -------
BAN BANANA
APP APPLE
TOM TOMATOE
in visual foxpro, issuing:
=seek("APP","fruits", "code")
will move you to the second row of the table fruits.
in vb.net having a dataset with the same structure..
i have two textboxes (txtcodesearch) and one button (btnSearch)
looks like this;
----------------- -------------
| txtcodesearch | | btnSearch |
----------------- -------------
-----------------
| txtdesc |
-----------------
- my txtdesc is bound to dsfruits1.fruits.code
- my txtcodesearch is not bounded, i use it to type the code i want to search
- my btnSearch will search the code typed in the txtcodesearch in the dataset and
"me.bindingcontext..." something to my txtdesc.
how to i move my record to the second row by finding the APPLE record?
-TIA
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