Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Keypress nkeycode
Message
 
 
À
16/04/2006 01:21:48
Mk Sharma
Shrishti Solutions
Mumbai, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01113911
Message ID:
01113921
Vues:
13
Try to add NODEFAULT
>i am writing below code in "grid1.column3.text1.keypress"
>
>Lparameters nKeyCode, nShiftAltCtrl
>do case
>case nkeycode=13 && problem with this
>thisform.addnewrow()
  NODEFAULT
>case nkeycode=3 && this working perfect
>thisform.addnewrow()
  NODEFAULT
>endcase
>
>when i press pagedown it append a record and focus to column1
>
>when i press enter it append a record but focus to column4
>
>it is going to column1 but back to column4
>
>
>thisform.addnewrow()
>********************
>Select inward1
>If (qty+Free)<>0
>Delete For (qty+Free)=0
>Append Blank
>Replace vno With inward.vno, Status With inward.Status, Type With inward.Type, reco1 With inward.reco1, machineid With inward.machineid
>thisform.pageframe1.page1.grid1.SetFocus()
>Thisform.pageframe1.pAGE1.grid1.colUMN1.SetFocus()
>Endif
>
>warm regards,
>mk.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform