Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Issues with Keypress Event and Grids
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00943030
Message ID:
00943114
Vues:
19
I've already disabled the columns I don't want them in...but there are two that they need to get to, one of which is defaulted to a value (which they may change), the other is the primary data entry field. I need the Enter key to keep them in that field (going DOWN, rather than ACROSS). So, in the Keypress event of the textbox in the grid I put code that says "If the Enter Key was pressed, do a down arrow, then a left arrow". This work perfectly the first time in the screen. After that, the form acts like there is NO KeyPress Event at all.


>Perhaps in the WHEN event for the columns you do not want selected you could palce a RETURN=.F.
>
>
>>Hello all
>>
>>VFP8, 2 Forms
>>
>>
>>Here's the idea:
>>Form 1 gets initial data (batch number, remit number range) and then calls Form 2.
>>
>>Form 2 uses a grid to allow data entry of money amounts. I've got a keypress event at the cell level. This event checks to see if the 'Enter' key was pressed, and if so - does a Down Arrow and then a Left Arrow. Basically I need the 'Enter' key to march down the grid, staying in the same column. When user is finished, they hit the 'Save' button which closes Form 2 and returns to Form one for the next batch.
>>
>>Here's the problem:
>>
>>First time through, Form 1 works fine, Form 2 works fine, returns to Form 1, Form 1 works fine, goes to Form 2 and now the Keypress event is being completely ignored - like it doesn't exist
>>
>>
>>Here's the plea:
>>
>>Does this sound familiar to anyone? Does anyone have any ideas of how to fix this?
>>
>>Help me, please?
"You don't manage people. You manage things - people you lead" Adm. Grace Hopper
Pflugerville, between a Rock and a Weird Place
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform