Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setfocus() gives error Cannot call setfocus from within
Message
From
10/02/2005 09:00:50
Freddie Rodrigues
Bitrun Business Solutions
Mumbai, India
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00985506
Message ID:
00985531
Views:
43
Here's the code

*lcOldTalk = SET("TALK")
*SET TALK OFF
*lcOldDeleted = SET("DELETED")
*SET DELETED OFF

sele (gridsmry)
CALCULATE MAX(srno) ALL TO lMaxID
lMaxID = lMaxID+1
APPEND BLANK
replace srno with lMaxID
thisform.pageframe1.page1.grditemsgrid.refresh
thisform.pageframe1.page1.grditemsgrid.setfocus()

*SET TALK &lcOldTalk
*SET DELETED &lcOldDeleted
Helping hands are better than praying lips.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform