Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
_COMATTRIB just works with COM objects?
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00597108
Message ID:
00597118
Views:
17
Hi Rodolfo,

>Take a look in this code: MyTest.PRG
>
>
>Define Class MyClass As Session OlePublic
>   WarningMessage = ""
>   Dimension WarningMessage_COMATTRIB[5]
>   WarningMessage_COMATTRIB[1] = 0
>   WarningMessage_COMATTRIB[2] = "Stores warning messages"
>   WarningMessage_COMATTRIB[3] = "WarningMessage"
>   WarningMessage_COMATTRIB[4] = ""
>   WarningMessage_COMATTRIB[5] = 0
>EndDefine
>
>
>If I use this class with VFP as following, the intellisense shows me a lot of events, properties and so on... Example:
>
>
>x = CreateObject("MyClass")
>x. [intellisense...
>  +---------------------------
>  | Init
>  | Destroy
>  | ...
>  | WarningMessage
>  | ...
>  +---------------------------
>
>
>But, If I use this class like a COM object, the intellisense show me just the "WarningMessage" property.
>
>
>x = CreateObject("Test.MyClass")
>x. [intellisense...
>  +---------------------------
>  | WarningMessage
>  +---------------------------
>


See VFP 7 help for explanation http://msdn.microsoft.com/library/?url=/library/en-us/fox7help/html/newWhats_New_in_Visual_FoxPro60.asp?frame=true

>One more thing: The Help Message "Stores warning messages" .and. Property name capitalization just works in the second sample.

>Is there some way it works when I using just VFP class?

No. This info is stored in a Type Library.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform