Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cannot read value of text box
Message
De
07/09/2001 16:28:37
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00553932
Message ID:
00554064
Vues:
15
>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
Fil
Voir

Click here to load this message in the networking platform