Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
This. into a method
Message
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01411257
Message ID:
01411258
Views:
87
This message has been marked as the solution to the initial question of the thread.
>In a label click method I wrote:
>
>*************************************************************
> STORE this.Caption TO cDia
>
>= MESSAGEBOX(cDia) ** it show the caption, OK
>*************************************************************
>
>However I as have many labels I decide to create a method in form,
>instead of repeating the method to each label
>
>*********************************************
>**method gereral
>STORE this.Caption TO cDia
>
>= MESSAGEBOX(cDia)
>***************************************************
>
>From each label click I call the method
>
>thisform.general
>
>However it returns blank value

In this case 'THIS' would refer to a form, not to a label.

You can instead do
thisform.General(this) && Label's click
>**method gereral
lparameters toLabel
STORE toLabel.Caption TO cDia
 
= MESSAGEBOX(cDia)
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform