Information générale
Titre:
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement