Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ISSUE: AMEMBERS return no properties
Message
From
27/06/2005 16:20:15
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01026773
Message ID:
01026864
Views:
17
>>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!
Previous
Reply
Map
View

Click here to load this message in the networking platform