Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keypress nkeycode
Message
 
 
To
16/04/2006 01:21:48
Mk Sharma
Shrishti Solutions
Mumbai, India
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01113911
Message ID:
01113921
Views:
14
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform