• wcBASIC 'STEP' Example

    From Robert Wolfe@1:116/18 to All on Wed Feb 11 22:06:54 2015
    Hi all. Thought I would share this bit of code with those who may (or
    may not) already know about the STEP keyword in wcBASIC.

    I have used it in this example in a SUB format as follows:

    sub DownTo (v1 as integer, v2 as integer, v3 as integer)
    dim i as integer
    for i = v1 to v2 step v3
    print i; " ";
    next i
    end sub

    Now, to count down from 10 to 1, this sub would be called using the
    following format:

    DownTo(10, 1, -1)


    ... Maybe I should cut the power before I-- ZZZAAPPOWWWWWW
    --- Wildcat! v6.4.454.2 (Nov 17 2011), Editor Mod v1.7
    * Origin: Wildcat! Wiki - http://wiki.winserver.us (1:116/18)