Information générale
Catégorie:
The Mere Mortals Framework
>hI,
>
> I have used CBizObjnolistmaintform. On this I put a simple text box from the "form controls Toolbar" and default name is text1. When I run the program, I am accessing the value of Text1 within a program called delete.prg with
>
> Remarks = ThisForm.Page1.text1.value
>
>
>where page1 is first page on the two page form
>i am getting the error "Parent can only be used within a method"
>
>Thanks
>Bharat
Bharat,
There are a number of petential problems here:
1. Delete is VFP reserved word and should probably not be used for the name of a program
2. Thisform should be used inside an object and not a prg.
A workaround would be to pass the value of your texbox in a parameter to the program or reference the form by using,
lcRemarks = _screen.activeform.pgfBizob.page1.text1.value
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