Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


output parameters from a com object method

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,3485
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> output parameters from a com object method
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 output parameters from a com object method - 6/22/2005 1:56:38 AM   
  fguigui

 

Posts: 3
Score: 0
Joined: 6/22/2005
From:
Status: offline
In a vbscript we call a method of a com object, there are output parameters in this method, and these parameters are not updated as they should be, here is the sample code :


Set ki = CreateObject("FRQInterface.FRQInter")

inXMLDeal = Cstr(rs(0))

outDealID = 0

inType = CInt(1)

outErrMsg = ""

result = CInt(0)


ki.ProcessXMLData (inXMLDeal), 1, (outDealID), (outErrMsg):


outDealID and outErrMsg are the output parameters, do you see something to do so that these parameters are effectively updated by the method.


Regards
 
 
Post #: 1
 
 Re: output parameters from a com object method - 6/22/2005 5:52:17 AM   
  didorno

 

Posts: 361
Score: 0
Joined: 2/12/2005
From:
Status: offline
The only thing I see is :

      
Replace by :

      
Or

      
Good luck !

(in reply to fguigui)
 
 
Post #: 2
 
 Re: output parameters from a com object method - 6/22/2005 7:22:16 PM   
  fguigui

 

Posts: 3
Score: 0
Joined: 6/22/2005
From:
Status: offline
it doesn't work :
- parenthesis for all parameters : not allowed
- no parenthesis : syntax error : parameters not compatibles

Regards

If you have other ideas, don't hesitate...

(in reply to fguigui)
 
 
Post #: 3
 
 Re: output parameters from a com object method - 6/23/2005 6:14:58 AM   
  Xandros

 

Posts: 100
Score: 0
Joined: 6/23/2005
From:
Status: offline
Have you tried something like this:

temp = ki.ProcessXMLData (inXMLDeal, 1, outDealID, outErrMsg)

If none of these work, please post the exact error message(s). Also, please state the signature of the ProcessXMLData method... it might have a bearing on the problem and its solution.

(in reply to fguigui)
 
 
Post #: 4
 
 Re: output parameters from a com object method - 6/23/2005 7:58:35 PM   
  fguigui

 

Posts: 3
Score: 0
Joined: 6/22/2005
From:
Status: offline
Stop searching !
Well, it would seem that the VB(6) method ProcessXMLData could effectively update the output parameters if it would declared these parameters as Variant, as it's not the case it can't work.
This method is part of a software that we can't modify.

The call of this vbscript was done to avoid bugs of this software...

Thanx for your help, we'll do something else !

Regards

(in reply to fguigui)
 
 
Post #: 5
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> output parameters from a com object method Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts