Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Array into an array

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Array into an array
  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 >>
 Array into an array - 5/5/2007 5:27:55 AM   
  opeca

 

Posts: 10
Score: 0
Joined: 4/11/2007
Status: offline
Hi All!

I cannot find the solution for the following problem:

I've just write an ActiveX DLL, it contains only one function (receiver) as a VARIANT.
I want to use this one to a vbscript like this:

set otype = createobject("OwnerType.Comm")
dim testarray

testarray = otype.receiver
wscript.echo ubound(testarray)


It's working very well till this point. But if I want to write the item of the array, wsh send an error: Type mismatch - for example on this: wscript.echo testarray(1)
I cannot understand, that why is it Type mismatch, when the ubound function get a good result for it.

Any idea?
Thank You

< Message edited by opeca -- 5/5/2007 5:32:32 AM >
 
 
Post #: 1
 
 RE: Array into an array - 5/6/2007 7:42:16 PM   
  opeca

 

Posts: 10
Score: 0
Joined: 4/11/2007
Status: offline
Okay, no problem already, I've solved it, approach from another way, so I think, this topic is effaceable.

(in reply to opeca)
 
 
Post #: 2
 
 
 
  

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 >> Array into an array 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