Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>Hey Joe,
>
>>Then I click a button with
>>the following code...
>
>Thats your problem. From the help:
>
>ActiveRow returns zero if the grid doesn't have the focus.
>
>So when you click your button the grid loses focus. Try the Watch Window or ON KEY LABEL for testing purposes.
Ok... I fixed it by adding a temp variable and copying activerow to it
before the grid loses focus.
BTW- Here is all _my_ vfp5 help file has about it...
Specifies the row that contains the active cell in a Grid control. Not available at design time; read-only at run time.
Syntax
Grid.ActiveRow
Remarks
The ActiveRow property does not return the same value as RECNO( ) in an indexed table.
Précédent
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