General information
Category:
Coding, syntax & commands
I think David is right . it's good solution for your problem. Even if you want to do with LABEL control then , try to write code in INIT method of LABEL and set LABEL.Caption = cust.add1 . Before that use cust file .
So caption will change . Do set it's caption each time when you navigate record .
I think it will do.
Bye
Mihir
>when working with classforms I think I found a strange behavior I can duplicate every single time.
>
>I use subclassed version of the label control from the _base class. and here is the trouble.
>
>if I change the label caption using the properties sheet, to something like this. caption=cust.add1 or caption=(add1) if in code, I change the propertity of the caption, to the same thing, because I have changed the record pointer, I want to refresh the label)
>
>VFP does not know what the caption propertity is. and makes the value a ""
>
>
>however, if I set the property only in code. and let the default value 'label1' stay in place./ then everthing works fine...
>
>I have tried this over and over again and the same strange thing happens. The reason for this post is I am curious if I am just missing something basic. or has someone else noticed this. ?
>
>thanks
>Bob Lee
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only