Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Design time re-size
Message
De
19/06/2009 05:47:07
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
19/06/2009 05:12:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01406083
Message ID:
01407097
Vues:
50
>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 lcProperty

do 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.

Off

There is no place like [::1]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform