Forum Discussion

kaiiii's avatar
kaiiii
Regular Contributor
4 years ago

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.

  • 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...

     

  • 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...

     

  • ChrisAdams's avatar
    ChrisAdams
    Champion Level 3

    Hi,

     

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

    • hkim5's avatar
      hkim5
      Staff

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