General information
Category:
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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only