Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP: How to get the value of a specific text box in a gr
Message
De
05/01/2000 06:00:19
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
05/01/2000 03:57:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00313085
Message ID:
00313096
Vues:
39
>Is it possible to :
>
>1) get the value of a text box at column X and Row Y in a grid?
>2) to set focus to a text box at column X and Row Y in a grid?
>3) delete a specific row of a grid which is a child table?
>
>Thanks :)
>
>Ralf


1) You should first move to Row Y. Then oGrid.Columns(X).Text1.value
2) See ActivateCell method. But be warned it's valid for visible part of the grid.
3) Nothing via grid PEM AFAIK.

Now these were the grid PEM way. But I suggest something different which is more secure and easy :
1) Go to record. Directly read controlsource value.
lnSaveRec = recno() && Save current
go Y
lValue = myTable.myField
go lnSaveRec && Return to current

If you don't want to move record pointer (which would fire record level rule and current field's valid, commit if row buffering used) do an SQL select into array (but SQL would only select from committed).

2) First go to record. Refresh grid then oGrid.Columns(X).setfocus.
3) Go to record and delete.

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform