Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot read value of text box
Message
From
07/09/2001 16:28:37
 
 
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00553932
Message ID:
00554064
Views:
17
>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
Map
View

Click here to load this message in the networking platform