Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
step... what is it
#1
what is step and how does it work?
url=http://www.random-seed.net][Image: asylumsig.png][/url]
Reply
#2
http://qbasicnews.com/qboho/qckstep.shtml

any more specific questions?
[Image: sig.php]
Back by popular demand!
I will byte and nibble you bit by bit until nothing remains but crumbs.
Reply
#3
i think i get it.. like, if i want to make a for next loop, but i dont want to to count from 1 to 10 by ones, i want it to count in 2's, i would use step.. so i could go like 2,4,6,8,10... is that correct?
url=http://www.random-seed.net][Image: asylumsig.png][/url]
Reply
#4
up that's what step does when you use it with FOR loops. It tells it how much to increment it each time.
[Image: sig.php]
Back by popular demand!
I will byte and nibble you bit by bit until nothing remains but crumbs.
Reply
#5
it basically ADD's the value to the "from"

STEP 2 so step 2 doesnt "count by" it "adds"
count from 1 to 10 would output this

1
3
5
7
9

if you wanted to "count by 2's" you would make it "0 to 10" output

0
2
4
6
8
10
Oh dear,' says God, 'I hadn't thought of that,' and promptly vanished in a puff of logic."
My waste of space
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)