Below is some extremely simple code to open a form. Can someone explain why A5V8 is having problems with it, when invoked from the DblClick method of an ActiveX control ctTree from DBI-Tech?
I am trying to get Alpha Five to "play nice" with standard ActiveX controls used by the Visual Basic world. I'll have to admit this is more of a challenge than I originally thought it would be.
Excluding the function and end function statements, when this code is inserted in a A5 Button's OnPush event, it correctly opens form frmTest.
When the code with the function and end function statements are inserted in the DblClick method of an ActiveX Tree Control the following error messages are received:
frm = Form.Load("frmTest")
An error occurred while running a script.
Object does not support requested interface.
frm.Show()
Object does not support requested interface.
Argument is incorrect data type.
frm.Show()
Property is write only.
frmShow method not found
I even tried converting an Action Script to open the form to XBasic and then pasted the resulting code into the the Tree Control's double click function. That didn't work either.
The following error messages were received by that more complex code:
An error occurred while running a script
Form not found �frmTest�
An error occurred while running a script.
Argument is incorrect data type.
An error occurred when running a script
Property is write only
varP_frmTest.New_Record method not found.
There is no problem with the ActiveX control itself. When the statement
msgbox("The control was double clicked")
is placed within the function and end function lines and executed, the message box is displayed when any node on the tree is double clicked.
'---------------------------------------------------------------
Below is the vendor's documentation
DblClick Event
Description
Occurs when the user presses and releases a mouse button and then presses and releases it again over an object.
Syntax
Public Event DblClick()
See Also
ctTree Object
'---------------------------------------------------------------
It would seem to me that the ActiveX control has done its work, that is responded when a node on the tree was double clicked. Any ideas on why Alpha Five can not execute such simple code without errors?
Thanks,
Bob
Pittsburgh
I am trying to get Alpha Five to "play nice" with standard ActiveX controls used by the Visual Basic world. I'll have to admit this is more of a challenge than I originally thought it would be.
Excluding the function and end function statements, when this code is inserted in a A5 Button's OnPush event, it correctly opens form frmTest.
Code:
function dblclick as v () debug(1) dim frm as P frm = Form.Load("frmTest") frm.Show() frm.Activate() debug(0) end function
frm = Form.Load("frmTest")
An error occurred while running a script.
Object does not support requested interface.
frm.Show()
Object does not support requested interface.
Argument is incorrect data type.
frm.Show()
Property is write only.
frmShow method not found
I even tried converting an Action Script to open the form to XBasic and then pasted the resulting code into the the Tree Control's double click function. That didn't work either.
The following error messages were received by that more complex code:
An error occurred while running a script
Form not found �frmTest�
An error occurred while running a script.
Argument is incorrect data type.
An error occurred when running a script
Property is write only
varP_frmTest.New_Record method not found.
There is no problem with the ActiveX control itself. When the statement
msgbox("The control was double clicked")
is placed within the function and end function lines and executed, the message box is displayed when any node on the tree is double clicked.
'---------------------------------------------------------------
Below is the vendor's documentation
DblClick Event
Description
Occurs when the user presses and releases a mouse button and then presses and releases it again over an object.
Syntax
Public Event DblClick()
See Also
ctTree Object
'---------------------------------------------------------------
It would seem to me that the ActiveX control has done its work, that is responded when a node on the tree was double clicked. Any ideas on why Alpha Five can not execute such simple code without errors?
Thanks,
Bob
Pittsburgh
Comment