Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Control Source
Message
 
 
To
23/04/2003 10:15:43
John Baird
Coatesville, Pennsylvania, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00780574
Message ID:
00780586
Views:
14
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform