Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Drop class on form and execute code
Message
From
17/01/2001 16:42:02
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00463901
Message ID:
00464909
Views:
15
>One time probably won't cause me any problems as I really will only have one instance of this control on a form. I'm not 100% positive I'll even have this as a control that needs to be dropped on a form, but that's the way I'm currently leaning.

Hi, Fred.

Just remembered a clunky solution we used some time ago. What we needed at the time was to be sure that some properties were set after dropping the control.

This control was a container that had a special functionality but problem was that most things worked well just dropping it on the form, but if you forgot to set a couple properties, you should found problems later (it was a design problem, obviously, but not very easy to change).

Then on of our local Einstein discovered that the simplest way to be sure that anyone using it remember to set the damned properties was putting a label (invisible at runtime) in Arial, 14, bold and red that said "HAVE YOU SET THE X, Y, and Z PROPS?".

Of course, they changed the label back saying "I DID, I DID!" after setting it right. I laughed a lot when I saw what they did, but... well, it served it purpose!

Anyway, I think Vlad's idea is promising.

Good luck!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform