Formatting VB output columns for height and weight values

  • Thread starter Thread starter alanveron
  • Start date Start date
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 2K views
alanveron
Messages
45
Reaction score
0
Picture1.Print "Height"; "Weight-women"; "Weight-men"
a = Val(Text1.Text)
b = Val(Text2.Text)

Dim x, y, z As Integer
x = a
y = x * 3.5 - 108
z = x * 4 - 128
Do
Picture1.Print x; y; z
x = x + 1
y = x * 3.5 - 108
z = x * 4 - 128
Loop Until x > b

this is my command...but my when i run it,the words 'heightweight-womenweight-men' all stay together...can i separate them?
if possible i would like the value of x will display in the same column with height,while y in the same column with weight-women and z will be in the same line with weight-men
 
Physics news on Phys.org
just add spaces in your print statement:

Picture1.Print x & " "; y & " "; z