Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SetAll Question
Message
From
21/03/2003 13:40:17
 
 
To
21/03/2003 12:08:36
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00768480
Message ID:
00768712
Views:
22
Hi Alan:

I am not at my Dev machine but I think your sample code has just "switched the light on" <bg>. I think I have specified the subclass name in my call and not its instance name. Your code shows your subclass "TestText" but you have referred to "TestText1" in Setall(), with "1" being the operative character!

I am sure this is the problem. When I get to my machine, I will check this out. I really appreciate you having taken the time to investigate this for me. Thanks!

Best

>What I did was to create a textbox subclass (TestText) of fox's textbox class, give it a property called lReadOnly, and add it 3 times to a container subclass (TestContainer). I put the container subclass on a form with it's 3 text boxes. Finally, I added a button to the form, and in the button's click, I put the following code:
>
>
ThisForm.TestContainer1.SetAll("lReadOnly", .T., "TestText1")
>ThisForm.TestContainer1.Refresh()
>
>In the textbox subclass refresh, I have:
>
>
This.Value = IIF(This.lReadOnly, 'True', 'False')
>
>When I click the button, the textboxes all change to 'True'
>
>Alan
>
>>Hi Alan:
>>
>>>Gary, I'm not seeing that in version 7 - sp1.
>>
>>Which bit are you not seeing <s> ? What are you using as the specific subclass name value? Is your code based on a textbox subclass in a container on a form?
>>
>>>What version and service pack of VFP are you using?
>>
>>VFP7 SP1. Win2K SP3.
>>
>>Thanks for your interest!
>>
>>Best
-=Gary
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform