Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Steing From An Object Reference
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00320733
Message ID:
00321032
Views:
12
>Erik,
>
>I'm writing an app for a client, who will then retail the app.
>
>They would like the end users to have the ability to edit the label
>captions next to data entry fields, so the labels are user customizable.
>
>I created a container class with a label and textbox, and all functions
>fine, except that I needed a way to identify the actual label container
>being edited, and then use that as a lookup value in a table.
>
>Since it's possible to have more than one object with the same name,
>say on pageframes or grids, I figured that the best way to uniquely
>identify the object was with the full object reference converted to a
>character string.
>
>So in cntLableEdit.Init(), I look up the object refernece string in the
>table and set the label caption to what was last entered by the user.
>
>That's my thinking. Any other ideas?
>

One of my apps has similar functionality, but these labels are actually textboxes adjusted to look like labels. I just set the controlsource to a field in a table that stores the values that the label should display. I have several other uses for a unique control identifier as well, but I have just created control properties that I can set to give them a unique identifier.

But I guess SYS(1272) would work just as well as either of these methods.
Erik Moore
Clientelligence
Previous
Reply
Map
View

Click here to load this message in the networking platform