Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Function in property causing issue
Message
 
À
27/11/2002 15:45:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00727750
Message ID:
00727843
Vues:
9
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform