Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
About 'Set order'
Message
From
11/11/1999 11:19:46
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
About 'Set order'
Miscellaneous
Thread ID:
00290116
Message ID:
00290116
Views:
65
I don't understand why the following strange thing happened in my form:
In a form's INIT, it has

set order to inv_no && inv_no is the index of a table
append blank
thisform.grid1.setfocus()

OK, fine, the user can add new data in the grid for the first row.
At the last column of the grid, I have the following in the Keypress event:

append blank
thisform.grid1.refresh()

OK, it is still fine, the user can add data in the 2nd row. But then
when he pressed the enter at the end of 2nd row, it supposted will move to the 3rd row to allow enter new data but the fact is that the cursor moved to the first column of row 2.
If I cancel the 'set order ot inv_no' in the form's INIT, this problem disappears, why? But I need the 'set order' to find the biggest inv_no, I cannot cancel it.
Power Wong
Every problem will have a solution, the only problem is that can you find it out.
Next
Reply
Map
View

Click here to load this message in the networking platform