Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form calls function in design mode
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01395196
Message ID:
01395606
Views:
63
I don't think Thisform is available during property evaluation but if you put your code in an UDF and reference it instead, it may work.

>
>Ok, I get it, I think. (I'm really not trying to be dense or dogamtic about this, I'm just trying to understand it better.)
>
>So, If I:
>
> Create a prg called MyPrg and put the following into it:
>
> PROCEDURE P1
> PROCEDURE P2
>
> Create a form called MyForm
>
> Create a method on MyForm called "DesignTime"
>
> Add the following line to my new DesignTime method:
>
> SET PROCEDURE TO MyPrg
>
> Add a property on MyForm called "DesignTimeProp"
>
> Set DesignTimeProp to:
>
> =ThisForm.DesignTime()
>
> Save the form.
>
> Open the form for editing.
>
> Execute the following from the command window:
>
> ? SET("PROCEDURE")
>
>I should see the Procedure set to my prg?
>
>I tried this and didn't see that it ran the method. Perhaps it evaluates it but does not execute it?
>
>Thanks,
>
>Steve
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform