Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with _SCREEN.ACTIVEFORM
Message
 
To
03/12/2002 15:40:04
Peter Wagner
Point Informática Ltda.
Limeira, Brazil
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00729137
Message ID:
00729152
Views:
16
>I have a form with some ActiveX (Kodak Imaging) objects for scanning images
>My Control buttons are in a Toolbar
>
>When I click on the new button that has this code in the click event
>
>_SCREEN.ACTIVEFORM.NEW()
>
>
>It returns an OLE error (Code: 0x80020006: Name Unknow).
>
>I discovered that when I type _screen.activeform in the debugger
>it says that One of the objects (Imaging.EditCtrl) is the activeform ???
>
>Does someone knows why this is happening, and if the is a workaround for this.
>
>Thanks in advance
>
Peter,

As Larry has pointed out, this is a known issue with some ActiveX controls. Another solution would be to use the _SCREEN.Forms collection. I'haven't test VFP 8.0 yet, but the previous versions all moved to the active form to the top of the collection, and thus, _SCREEN.Forms(1).New() works.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform