Information générale
Catégorie:
Codage, syntaxe et commandes
>>Hi All,
>>
>>I tried to use On Key Label command to reset the control focus. Here is the command I used in the Init Method:
>>
>>ON KEY LABEL frmMyForm.txtField.setfocus()
>>
>>I got an error saying "frmMyForm is not an object". Did I miss anything?
>
>If you are already in frmMyForm you should use reference 'Thisform'.
>Thisform.txtField.setfocus()
>BTW, it's better to use KeyPress event than ON KEY LABEL.
I tried to use ON KEY LABEL thisform.txtField.setfocus(). But it gave me an error "THISFORM can not be used within a method". Any idea why?
BTW, KeyPress can not be used for any combination of keys with the Alt key.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement