Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copying An OleClass
Message
From
03/01/2017 18:28:09
 
 
To
03/01/2017 16:11:35
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Miscellaneous
Thread ID:
01646275
Message ID:
01646286
Views:
60
Likes (1)
Hi Thierry,

Wonderful! I had done this some 10 years ago (the results were in the project manager), but forgot, and your tip put me back on the path.

1) create a form
2) drag the control onto the form
3) select the control on the form (hesitate with the mouse so you can move the mouse off without moving the object)
4) use aselobj() to get the object reference
5) use the object reference to use .saveasclass()

Thanks!

Hank

>known issue…
>.saveAsClass() maybe a workaround:
>
>o = create('form')
>o.addObject('vsflex_cursor', 'vsflex_cursor')
>o.vsflex_cursor.saveAsClass('dummy.vcx', 'vsflex_cursor')
>
>
>>So I have a class, vsflex_cursor of vsflex_lite.vcx that I want to copy. It is an OleClass.
>>
>>I want to copy (not subclass) it, with the usual way being:
>>
>>
>>create classlib dummy
>>add class vsflex_cursor of vsflex_lite to dummy
>>
>>
>>What I get is "Object class is invalid for this container."
>>
>>This happens with all of OLE controls in the project.
>>
>>Is this known behavior? A Google search brought up irrelevant hits based on the error message (other issues).
>>
>>tia,
>>
>>Hank
Previous
Reply
Map
View

Click here to load this message in the networking platform