Ask a Question

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.

3 REPLIES 3
ChrisAdams
Champion Level 2

Hi,

 

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

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

Best,
Justin Kim
hkim5
Staff

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
cancel
Showing results for 
Search instead for 
Did you mean: