Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Jim,
I'm calling a small program when the user presses alt+s (in the forms keypress event) the program gets checks the type of control then stores the value (if its text) in a variable, it then calls a spell checker application. After the spell checker is done the variable value contains the "spell checked" text that I then want to store back into the control. Every thing is working until I try to store the text back into the control, then I get the error described in my prev. message. I'm gonna' play around with the info you gave me to see if I can get it to work. Any other comments are more then welcome.
Thanks for you help.
Mike
>>I have a problem when I use _SCREEN.ActiveForm.Controls() when the control is in a pageframe. I can do lCtrl_is_Ro = _SCREEN.ActiveForm.Controls(nCtrl_no).ReadOnly or the like to get proberty values from a control, but _SCREEN.ActiveForm.Controls(nCtrl_no).Value = cNewValue to set proberty values in the control will return a "Controls is not an Object" error from Fox. Is there a way around this.
>>
>>Thanks,
>>Mike K.
>Mike,
>
>You have a couple of problems. First you need to check _SCREEN.ActiveForm.Controls(nCrtl).BaseClass to see what the control is. If it is a pageframe then you need to work with
>
>_SCREEN.Activeform.Controls(nCtrl).Page(nPage).Controls(nCtrl)
>
> ^ form ^ PageFrame ^ Page ^ control in page
>
>As you can see this can get pretty hairy pretty fast. You might want to rethinnk your design here and find a more direct way to accomplish your goal.
>
>Perhaps if you described your goal someone here might be able to show you a much easier way to achieve it.
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