>Joe,
>
>Stop being frustrated by _curobj. It is a feature of VFP that is for backwards compatiblity, as Dan Freeman says, that means compatible with backwards.
>
>Dump the ON KEY LABELs, set the form's KeyPreview property to .T. and use the form's KeyPress event to trap the keystrokes you want. Then refer to the form's controls by their names as in THISFORM.Text1. Get rid of the reads too, they are also for backwards compatibility.
>
>If you want to get up to speed quickly, I would suggest that you purchase one of the many books for VFP3 or VFP5, both will get you into the VFP way of doing things.
I know how to do this on a form. I'm working on some old 2.6 code that's still in my app.. I'm in the process of converting it, but we're having to do it very slowly, because we still have to send out releases of the product while converting it. I'm trying to get _curobj to work without forms in VFP 5.0a
Précédent
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