>Ian,
>
>(Good morning)
>
>Yes that's the solution:
>
>
.
>AddProperty(loObject,lcProperty,lnPropertyValue)
>
>and not
>
>
>loObject.AddProperty(lcProperty,lnPropertyValue)
>
>
>( it was indeed too late last night :( )
>
>I am still facing a problem with
>
>even checking property exsists with
>
>Pemstatus(loObject,lcProperty,5) = .t.
>
>still get an error lcProperty ' canot be found'
>
> when lcProperty is hidden how to avoid this / check if lcProperty is hidden?
>
>Regards,
>
>Koen
Normaly
lcProperty ' canot be found'
means that there is no variable named
lcPropertydo you missed to set the var like
lvProperty = 'YourPropertyName''
Pemstatus(loObject,lcProperty,5)
A hidden property declared in a parent class will return .T. on Pemstatus(loObject,'MyHiddenProp',5),
if the hidden prop is declared on the class you are working (e.g visible in the others page of property editor) the same command returns .t. and the property may by altered free.
Check out the AMEMBERS function, wich will give closer information of a projects PEMs
AMEMBERS(lamembers,loObject,0,'H')
will list every property hidden in lamembers. IOW if a property is found in the array, then it is hidden
Agnes
Agnes
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.
OffThere is no place like [::1]