Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pemstatus vs amembers
Message
From
30/11/2010 04:13:05
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
30/11/2010 04:03:35
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01491017
Message ID:
01491041
Views:
66
Hi Thomas,

beg your pardon, but this example will fail. You can not add a object.property to an other object via aDDProperty.

Anyway I understand your point.

Agnes

>Hi Agnes,
>
>>if yo go for the TYPE instead of PEMSTAT why not VARTYPE?
>
>Tore gave you the main reason. Also, if you plan to use addprop, the variable name is usually
>already in a string, so reusing that string like
>lcProp = "_screen.Height"
>if  TYPE(m.lcProp)=="U"
>   adpproperty(_screen, m.lcProp, 100)
>endif
>makes the code less brittle than typing it with and without " or going other dynamic ways -
>only a slight benefit, but I am prone to "finger stuttering" - see the line inside the if ;-)
>
>regards
>
>thomas
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform