Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Function in property causing issue
Message
 
To
27/11/2002 15:45:00
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00727750
Message ID:
00727843
Views:
8
Hi Ken,

I played around with some IIF() clauses, but couldn't get anything to work as you want it to.

I would recommend setting the property in the Init() since the expression for the property is otherwise evaluated before the object really exists (and during design time as you noticed), which can lead to some problems if you're referencing the object, the property belongs to. I know you didn't want to hear that, but I thought I'll say it anyway :)

Regards,
Armin


>Hi,
>
>I have "=MyFunction()" in the tooltiptext property on some controls. It works fine at runtime. The issue is that when I open the class (a form class) in the designer, it runs the function right then - at design time.
>
>Is there any way to keep that value in the property without it running the function at design time? I know I can set it in init code, but I'd rather just be able to type it in the prop sheet.
>
>thanks,

Armin Neudert
Regional Director (Stuttgart) of German FoxPro User Group dFPUG

MCP for Visual FoxPro

Expert/Editor of the VFP section in the German Codezone community portal
Previous
Reply
Map
View

Click here to load this message in the networking platform