Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to reference a grid cell?
Message
De
10/12/1997 09:13:32
 
 
À
10/12/1997 07:23:42
Shihchau Tai
Apic Systems Pte Ltd
Singapore, Singapour
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00064851
Message ID:
00064949
Vues:
31
>>Can anyone tell me some possible ways in which i can reference a grid cell directly from other parts of my code?
>>
>>i have a grid which is loaded with info. from a table data-source and i would like to extract a value from a certain grid cell but, i can't seem to find a way to directly reference a cell.
>>
>>The grid does have properties: ActiveColumn, ActiveRow but, i don't see any method which can make use of such info. to reference the cell.
>>
>>i'd like to achieve something like this,
>>
>> frsFormset.frmForm.grdGrid.ActiveCell.value
>>
>>but, i know that the line of code above is invalid because there is no such thing as an ActiveCell object.
>>
>>Any help will be appreciated!
>>Many thanks :)
>>
>>Mazlan Bin Mohammad
>
>
>
>ActiveColumn and ActiveRow are usually used by activatecell, beforerowcolumnchange and after rowcolumnchange. You can also do grid.columns(activecolumn).value.

Close, but columns don't have a value property. You would have to reference the value of the active control in the column.
Erik Moore
Clientelligence
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform