Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Double clicking and Keypress Events on Grids
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Double clicking and Keypress Events on Grids
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01035051
Message ID:
01035051
Vues:
63
I have a grid on a form which is bound to a cursor which is READONLY. In the doubleclick event and Keypress event I have the same code. The problem I have is if the Allcellselection peoperty is set to T both events do not work. If I have it set to F then the double click works but when I use the down arrow as soon as the record pointer moves the form/grid is released.

I basically want to carry out my code if the user presses enter on the record or double clicks. Any help would be appreciated.
IF nKeyCode = 13 AND lcsearch='Article'&& Enter key
SELECT testsum
replace artikey WITH mycursor.artikey, descrip1 WITH mycursor.descrip1, seamslippa WITH mycursor.seamslippa, ardelivery WITH mycursor.ardelivery, acomp WITH mycursor.acomp
ENDIF

IF nKeyCode = 13 AND lcsearch='Test Result'&& Enter key
	SELECT testsum
	SEEK UPPER(mycursor.labref)
ENDIF

THISFORM.Release()
thconsole.pageframe1.page2.refresh
Neil Lewis
IT R&D Manager
Velmore Ltd
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform