Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ISSUE: AMEMBERS return no properties
Message
De
27/06/2005 16:20:15
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01026773
Message ID:
01026864
Vues:
16
>>I met the similar problem with other objects. Try for instance:
>>
>>X = CreateObject("WScript.Shell")
>>?AMEMBERS(aa,m.X,3) && returns just 3, actually 2 if considering propertyget/put, instead of 14
>>
>>-CurrentDirectory PropertyGet
>>-CurrentDirectory PropertyPut
>>-Exec Method
>
>It looks like a bug in the AMEMBERS() to me because Intellisense has no problem displaying all the properties and methods.

And Local/Watch windows show the MAPI.Session's four Properties correctly. grrrrrr...
X=CREATEOBJECT("mapi.session")
? AMEMBERS(ax,x,3) && 16
? AMEMBERS(ax,x,0) && 0
* open Local or Watch, x is a object with 4 properties
? AMEMBERS(ax,x,0) && 4
* x.IntellisenseMenu list 31 pems
With Excel.Application,
X=CREATEOBJECT("excel.application")
? AMEMBERS(ax,x,3) && 318
* open Local or Watch, x is a simple object without properties
* x.IntellisenseMenù list 276 pems !
? x.Width
* look on Local/watch, you found the Width property
? AMEMBERS(ax,x,0) 
*...
For different COM object, you give different results.
I call this: RANDOM INTERFACE!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform