Click to See Complete Forum and Search --> : calling ActiveX control method from VBScript that takes an out parameter.


hemant
January 27th, 1999, 05:48 PM
I am trying to call an ActiveX control method from VBScript. The code looks like this.

MyControl.GetNodePosition theNode, PosX, PosY


Mycontrol would set the values of PosX and PosY. This function call works fine in VB but in VBScript this causes a type mismatch error.


I understand that the modification of argument is not allowed in VBScript. Does this mean that this ActivX control methods are unusable in VBScript?

r k patil
July 26th, 1999, 07:53 AM
hello,
many of the properties/methods of activex controls are not visible to ur code in VBScripting, although it is visible in VB. The list of property/methods that a user has control are listed on help pages of MSDN in the Visual InterDev Platform section. U may kindly have a look at them before u use.

Lothar Haensler
July 26th, 1999, 10:53 AM
VBScript knows only one type of variable: Variant.
I suggest, you try changing the datatype of your parameters to variant.