Information générale
Catégorie:
Codage, syntaxe et commandes
>vfp 3.0 win 95
>
>I am working with a textbox and grid to browse
>records. I have set near on in the textbox. When
>I browse records, the selected records show up in
>grid about the third record from the top of grid.
>
>I would like the selected record to show up as the
>first record in the grid, how can I do this?
>
>Thanks and have a good day!
>
>Becky
This may not be what you want - but worth a try - set a relationship from a dummy table to the grid. Put the contents of the textbox into a field in the dummy table and refresh the grid.
something along the lines of...
CREATE CURSOR Dummy (MyText C(10))
APPEND BLANK
SET RELATION TO MyText INTO GridTable ADDITIVE
Now bind the textbox to "Dummy.MyText" and refresh the grid on InteractiveChange() or whatever suites yuo
HTH
Précédent
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