Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
LABEL color class
Message
From
02/11/2004 14:34:56
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00951785
Message ID:
00957230
Views:
11
>>>>
>>>>That code is generated from the default VFP. Remove the "THIS.caption = m.vNewVal"
>>>
>>>Almost there, I get error "MEMBER WITH THIS NAME ALREADY EXISTS"
>>>
>>>.NewObject( lc_Object, 'lblChar', 'ClsLabel', , ;
>>>If I ignore it, it proceeds successfully. I am studying this tricky class and learning to experiment. thanks 4 all your help.
>>
>>You're welcome.
>>One thing from this class is, it builds the Text/Caption from labels control. Each of label control only have one character, because you want to give different color for each character.
>>
>>I wish you good luck!
>Before I let you go, are you getting that error too? "MEMBER WITH THIS NAME ALREADY EXISTS"

Of course not! <bg>

Try to create a new form. Drop one colorlabel class and one textbox. In the "TextBox.Valid" event
put: ThisForm.ColorLabel1.Caption = alltrim( This.Value )

Try to run it. If you still get that error, post the last modified code from colorlabel class. We'll take a look at it once again.
Herman
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform