Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I access the text portion of a grid in code
Message
De
26/09/2002 08:58:17
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00704633
Message ID:
00704638
Vues:
26
>I have grid which displays data. I want to be able to click in the grid and take the contents of where the the cursor is and assign it to a textbox.
>
>How do I reference the data in the position ("cell") where my cursor is?
>
>Regards,
>
>Stuart

I don't remember the details exactly, but let me try...

Grid.ActiveColumn contains the current column, as a number. You can then use this number for the .Columns collection, to get the active column. From this column, you can access the standard textbox Text1, or, to be safer, use Column.CurrentControl. From this CurrentControl, you can then get the .Value property.

HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform