2 Replies - 1283 Views - Last Post: 15 August 2013 - 04:15 AM Rate Topic: -----

#1 brerallia  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 146
  • Joined: 21-January 13

Execute loop statement horizontally in a label

Posted 14 August 2013 - 04:18 AM

hi im in advanced vb6 and on advanced the topic being discussed is about looping...

so i have a question.. i have this loop condition with a statement...
to print the statement then use: print x, but it does print on the form and it is printed vertically.. now i want the result to print it in a label and is printed horizontally...
so i have to say the result being printed for example is like this:
0 1 1 2 3 5 8 13 ... etc..

so that means the statement will be inside the loop for the statement to execute repeatedly...

ANY HELP WILL BE APPRECIATED.

Is This A Good Question/Topic? 0
  • +

Replies To: Execute loop statement horizontally in a label

#2 maj3091  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 303
  • View blog
  • Posts: 1,796
  • Joined: 26-March 09

Re: Execute loop statement horizontally in a label

Posted 14 August 2013 - 06:25 AM

You just need to append to the label caption inside the loop, so something like

label1.caption = label1.caption + YourData + " "

Was This Post Helpful? 1
  • +
  • -

#3 brerallia  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 146
  • Joined: 21-January 13

Re: Execute loop statement horizontally in a label

Posted 15 August 2013 - 04:15 AM

View Postmaj3091, on 14 August 2013 - 06:25 AM, said:

You just need to append to the label caption inside the loop, so something like

label1.caption = label1.caption + YourData + " "

wow.. thanks!!! thumbs up!!!
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1