>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