cancel
Showing results for 
Search instead for 
Did you mean: 

print array values without any loop in vb script

SOLVED
kaiiii
Regular Contributor

print array values without any loop in vb script

there few elements in an array. like 

it's just a example

dim a(3)

a(o)= "a"

a(o)= "a"

a(o)= "c"

log.message("....here i want to use any method ot property so I can call and all these a,b,c will display in logs")


all i need to get output without using any loop in vb script

there r might be solution to use tostring in another scripting languages but how can i implement in vb.

1 ACCEPTED SOLUTION

Accepted Solutions
hkim5
Staff

Re: print array values without any loop in vb script

logically speaking i dont think you can ever output all the values of an array without a loop because how would you use a single output to display multiple values without a loop?

the only not so elegant way would be to just hardcode the outputs without a loop/itererator Log.Message(a(0) a(1) a(2)) or something along those lines...

 

Best,
Justin Kim

View solution in original post

3 REPLIES 3
ChrisAdams
Contributor

Re: print array values without any loop in vb script

Hi,

 

Not a solution, but a question to your question, can you use VB Script with SoapUI?

hkim5
Staff

Re: print array values without any loop in vb script

wrong community but no, in soapui you can use groovy and i think rhino

Best,
Justin Kim
hkim5
Staff

Re: print array values without any loop in vb script

logically speaking i dont think you can ever output all the values of an array without a loop because how would you use a single output to display multiple values without a loop?

the only not so elegant way would be to just hardcode the outputs without a loop/itererator Log.Message(a(0) a(1) a(2)) or something along those lines...

 

Best,
Justin Kim

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors