Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Control Source
Message
 
 
À
23/04/2003 10:15:43
John Baird
Coatesville, Pennsylvanie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00780574
Message ID:
00780586
Vues:
13
John,

You can refere to a form as THISFORM inside it regardless if it's saved as a class or as a form.
.txtFirstName.ControlSource = "thisform.oClaimant.first_name"
>this.oParent is the form (saved as a class) and this is the business logic class. I have no thisform to use.
>
>
>>.txtFirstName.ControlSource = "thisform.Control.oClaimant.first_name"
>>
>>"This" will be not recognizable elsewhere, you exact name instead, like "thisform.Control".
>>
>>>Please disregard previous
>>>
>>>I have a form where I have scattered a record object to name oClaimant and passed that object to this form.
>>>How do I set the control source to this property? No matter what I do, it errors out or doesn't display the contents of the property.
>>>
>>>
>>>    WITH this.oParent
>>>	.txtFirstName.ControlSource = this.oClaimant.first_name
>>>    ENDWITH
>>>
>>>
>>>Thanks in advance.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform