Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
About 'Set order'
Message
De
11/11/1999 11:19:46
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
About 'Set order'
Divers
Thread ID:
00290116
Message ID:
00290116
Vues:
62
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform