Rafał Kowalski Rafał Kowalski - 1 year ago 114
Vb.net Question

Multiple values in messagebox

I have that simple code

While reader.Read()
End While

Which returns 2 messagebox, one with value 'a' and another with 'b'. How do I modify it to have one messagebox giving me 'a' and 'b' in a single messagebox?

Thanks in advance!

Answer Source
//declare variable_ and assign to empty string.
While reader.Read()
      variable_ = variable_ + reader(0).ToString().Trim()
End While

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download