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
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
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
> 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
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
>
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
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....
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....
>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......
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......
>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