Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: How about a really simple request (in 11 maybe...)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Oliver T. Nelson Guest

    Default How about a really simple request (in 11 maybe...)

    How about we add a really simple one:

    for i from val DOWN to 0
    ....

    yes, the word down, so a for statement to count down...

    OLIVER

  2. #2
    Join Date
    Feb 2009
    Location
    New Hampshire, USA
    Posts
    2,177

    Default Re: How about a really simple request (in 11 maybe...)

    I would have liked having a loop that can count down. Would have been nice.

    I thought it should just know...

    For iItem from 1 to 10
    // counting up
    Loop

    For iItem from 10 to 1
    // counting down
    Loop

    But your right Oliver, rather than change the way that whole thing works...
    perhaps a new command/macro or something can be added for this.

    --
    David Martinko
    Redeemed Software
    248-535-7495
    RedeemedSoftware(SHIFT+2)Hotmail(PERIOD)com

    "Oliver T. Nelson" <oliver@ootbc.com> wrote in message
    news:YX4DjMCBFHA.4336@dacmail.dataaccess.com...
    > How about we add a really simple one:
    >
    > for i from val DOWN to 0
    > ...
    >
    > yes, the word down, so a for statement to count down...
    >
    > OLIVER




  3. #3
    Steve Kusnerus Guest

    Default Re: How about a really simple request (in 11 maybe...)

    > For iItem from 10 to 1
    > // counting down
    > Loop
    >


    Except when you want the loop to fail because the starting value is greater than the ending value, as in:

    for iItem from 1 to (item_count(array(current_object)))
    // counting up
    loop

    i.e. Don't do the for/loop when the array is empty

    I would like to suggest something a little more common with other languages, such as a STEP or BY parameter:

    for iItem from 10 to 1 step -1
    // count down by 1
    //loop

    or

    for iItem from 1 to (item_count(grid(current_object))) step 4
    // count up by 4, like when only referencing the first column of a 4 column grid
    loop

    Just my 2 cents....

    -Steve


  4. #4
    Join Date
    Feb 2009
    Location
    New Hampshire, USA
    Posts
    2,177

    Default Re: How about a really simple request (in 11 maybe...)

    Good suggestion. Stepping can also be usefull.

    --
    David Martinko
    Redeemed Software
    248-535-7495
    RedeemedSoftware(SHIFT+2)Hotmail(PERIOD)com

    "Steve Kusnerus" <kcom@voicenet.com> wrote in message
    news:41F94853.423DA8C6@voicenet.com...
    >> For iItem from 10 to 1
    >> // counting down
    >> Loop
    >>

    >
    > Except when you want the loop to fail because the starting value is
    > greater than the ending value, as in:
    >
    > for iItem from 1 to (item_count(array(current_object)))
    > // counting up
    > loop
    >
    > i.e. Don't do the for/loop when the array is empty
    >
    > I would like to suggest something a little more common with other
    > languages, such as a STEP or BY parameter:
    >
    > for iItem from 10 to 1 step -1
    > // count down by 1
    > //loop
    >
    > or
    >
    > for iItem from 1 to (item_count(grid(current_object))) step 4
    > // count up by 4, like when only referencing the first column of a 4
    > column grid
    > loop
    >
    > Just my 2 cents....
    >
    > -Steve
    >




  5. #5
    Join Date
    Feb 2009
    Location
    Adelaide, South Australia
    Posts
    2,863

    Default Re: How about a really simple request (in 11 maybe...)

    Steve,

    You got my vote!

    Always wanted a step in DataFlex since basic on the Commodore 64 had
    it... Step -1 would indeed solve the count down problem, and make it a
    lot simpler for the DAW to implement.

    Please log on the suggestion system!

    Cheers,
    Marco

    On Thu, 27 Jan 2005 15:00:20 -0500, Steve Kusnerus <kcom@voicenet.com>
    wrote:

    >> For iItem from 10 to 1
    >> // counting down
    >> Loop
    >>

    >
    >Except when you want the loop to fail because the starting value is greater than the ending value, as in:
    >
    >for iItem from 1 to (item_count(array(current_object)))
    >// counting up
    >loop
    >
    >i.e. Don't do the for/loop when the array is empty
    >
    >I would like to suggest something a little more common with other languages, such as a STEP or BY parameter:
    >
    >for iItem from 10 to 1 step -1
    >// count down by 1
    >//loop
    >
    >or
    >
    >for iItem from 1 to (item_count(grid(current_object))) step 4
    >// count up by 4, like when only referencing the first column of a 4 column grid
    >loop
    >
    >Just my 2 cents....
    >
    >-Steve



  6. #6
    Matt Smith Guest

    Default Re: How about a really simple request (in 11 maybe...)

    Marco Kuipers wrote:

    >
    > Always wanted a step in DataFlex since basic on the Commodore 64 had
    > it...


    I think we could all learn something from the Commodore 64....

  7. #7
    Join Date
    Feb 2009
    Posts
    1,270

    Default Re: How about a really simple request (in 11 maybe...)

    Mine is still running ;-)

    Peter H. van Wijk
    X-Organize Consultancy N.V.

    "Matt Smith" <matt@ddug.org> wrote in message
    news:%23pRoCMMBFHA.4336@dacmail.dataaccess.com...
    > Marco Kuipers wrote:
    >
    >>
    >> Always wanted a step in DataFlex since basic on the Commodore 64 had
    >> it...

    >
    > I think we could all learn something from the Commodore 64....




  8. #8
    Dave &/or Ryan Guest

    Default Re: How about a really simple request (in 11 maybe...)

    >Mine is still running ;-)

    LOL. So's my sinclair ZX - the home-built one. Found it in the attic
    when I was in the UK last summer. Mind you I can't find the ZBASIC
    manual so I'm back to VDF <g>

    I got a dual head video card yesterday (Matrox/HP) and amused myself
    by setting up the 'Apple II' screensaver.

    Gets MANY confused looks......

  9. #9
    Join Date
    Feb 2009
    Posts
    1,270

    Default Re: How about a really simple request (in 11 maybe...)

    Dave,

    > >Mine is still running ;-)

    >
    > LOL. So's my sinclair ZX - the home-built one. Found it in the attic
    > when I was in the UK last summer. Mind you I can't find the ZBASIC
    > manual so I'm back to VDF <g>


    I still like my Atari which I used after the commodore 64. Have not tested
    the working of that one since long.

    Here is you ZBasic manual:
    http://www.gno.org/pub/apple2/prodos...sic/zbuser.pdf

    Did a some time ago a search for emulators. And many are available. Never
    tried them Did try once to compile an old Program which I wrote in Turbo
    Pascal 4.0. Thought it was not working at all, but when I looked better the
    compile only to a split second on the I do not know how many times faster
    computer then the first IBM pc where I coded the program on.

    Peter H. van Wijk
    X-Organize Consultancy N.V.

    >
    > I got a dual head video card yesterday (Matrox/HP) and amused myself
    > by setting up the 'Apple II' screensaver.
    >
    > Gets MANY confused looks......




  10. #10
    Dave &/or Ryan Guest

    Default Re: How about a really simple request (in 11 maybe...)


    >Here is you ZBasic manual:
    >http://www.gno.org/pub/apple2/prodos...sic/zbuser.pdf
    >


    NOW you tell me. The last time I saw the sinclair my nephew was about
    to stay in the house. I doubt if it would survive, he's a dangerous
    fellow with a screwdriver <vbg>

    Oh, by the way, I got famous, sorta ..... second item down .....

    http://www.novell.com/coolsolutions/feature/11423.html

    Cheers, Dave

Page 1 of 3 123 LastLast

Similar Threads

  1. Simple and first question
    By Reimar in forum Windows Applications
    Replies: 1
    Last Post: 8-Jun-2010, 08:18 AM
  2. Simple MAPI ?
    By DavePorter in forum Windows Applications
    Replies: 0
    Last Post: 19-Feb-2008, 07:44 PM
  3. Simple DD question
    By Focus in forum Windows Applications
    Replies: 3
    Last Post: 2-Apr-2007, 10:36 AM
  4. Q: Simple question...
    By Martin Arvidsson in forum Windows Applications
    Replies: 2
    Last Post: 24-Apr-2006, 12:27 PM
  5. simple request
    By Mk@p3rfect in forum Windows Applications
    Replies: 3
    Last Post: 29-Dec-2005, 04:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •