Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ctrl+T in grid
Message
De
29/03/2002 09:39:40
 
 
À
28/03/2002 22:17:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00638576
Message ID:
00638908
Vues:
25
>Although probably not good OOP design, You can do this with on key label 'CTRL+T' and 1 public variable, and keep all code in the grid class.
>
>Add a method to the grid class (delete_recall)
>
>*!* method delete_recall
>  if deleted()
>    recall
>  else
>    delete
>  endif
>
>define a public variable to grid reference, Assign on key label in grid WHEN
>
>*!* grid when
>public oGrid4Onkey
>oGrid4Onkey = this
>on key label 'ctrl+t' oGrid4Onkey.delete_recall()
>
>Reset On key label and release the public variable in grid VALID
>
>*!*grid valid
>on key label 'ctrl+t'
>oGrid4Onkey = .null.
>release oGrid4Onkey
>
>I'm not sure if I would do this but it does seem to work.
>
>HTH
>Elmer

This is a nifty idea. Do you know off hand, does the grid.valid() execute if no changes were made to the data in the grid?
Bill Morris
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform