Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - VB script - for accessing a array returned from stored procedure

Reply
 
Old 10-28-2008   #1 (permalink)
Anand


 
 

VB script - for accessing a array returned from stored procedure

In my Vb script i need to call a stored procedure by passing some
input parameters which returns an array. i'm able to handle when the
stored procedure returns number or char. i need help on how to handle
when the stored procedure returns an array.

thnx in advance

My System SpecsSystem Spec
Old 10-28-2008   #2 (permalink)
James Whitlow


 
 

Re: VB script - for accessing a array returned from stored procedure

"Anand" <anandhanr@xxxxxx> wrote in message
news:77931fe8-6984-467e-9b35-4235f411f1ec@xxxxxx
Quote:

> In my Vb script i need to call a stored procedure by passing some
> input parameters which returns an array. i'm able to handle when the
> stored procedure returns number or char. i need help on how to handle
> when the stored procedure returns an array.
You can test your variable with VarType and parse accordinly.

Select Case VarType(ReturnVar) > 8192
Case True
MsgBox "True", , VarType(ReturnVar)
'Code to handle or join array
Case False
MsgBox "False", , VarType(ReturnVar)
'Code to handle empty, null, number, character, etc
End Select

Question is, do you want the first or another specific element in the
array or do you want to join it together into a single string?


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Could not find Stored Procedure error in VB script VB Script
how to retrieve an array returned from stored procedure VB Script
How can a Record type be returned by a stored procedure? VB Script
executing sql stored procedure VB Script
Calling a stored procedure from powershell PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46