Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set properties for multiple objects
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00368236
Message ID:
00368523
Views:
13
>Nick,
>I was referring to the Tag property of Label fields
>.i.e ThisField.Tag where thisfield happens to be a label

Then it is more difficult, because the textbox knows what it's controlsource is, but the label does not know which textbox it belongs to. If you create your labels and textboxes by dragging the field to the form from the Dataenvironment therefore they have common parts in their names, then more elaborated code could do this. But, why do you want to set label.Tag to the name of the coressponding textbox.controlsource field?

>>>=IIF("." $ this.controlsource,SUBSTR(this.controlsource, AT(".",this.controlsource)+1), this.controlsource)
>
>Where would you type in this text ?
>

I meant to type it right in the PEM sheet in the Tag property
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform