Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Macros, another problem
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01410699
Message ID:
01410700
Views:
45
>I am trying the code below to deal with labels in forms
>
> STORE ("Thisform.feriado"+TRANSFORM(fPos)+".Caption") TO cDia
>
>When I apply
>
> ? cDia
>
>I am getting:
>
> thisform.feriado1.caption
>
>But I need only real the value stored in caption, not the whole path as above
>
>
>Moises

In this case you may try
lcCaption = evaluate("Thisform.feriado"+TRANSFORM(fPos)+".Caption")
or
loLabel = getPem(thisform, "feriado"+TRANSFORM(fPos))

lcCaption = loLabel.Caption
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform