Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SetAll Question
Message
De
21/03/2003 13:40:17
 
 
À
21/03/2003 12:08:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00768480
Message ID:
00768712
Vues:
21
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform