Arexx (42/67)

From:Michael Jaccoud
Date:20 Oct 99 at 21:15:33
Subject:Re: Filenumbering

From: Michael Jaccoud <topgun@pop.ch>

Hallo Bruce

Am 20-Okt-99 schrieb Bruce Steers

>> /*Numbering*/
>> DO Nr=1 to 99
>>
>> IF (EXISTS('RAM:TEST') = 0)
>> THEN ADDRESS COMMAND 'makedir ram:test'
>> ELSE ADDRESS COMMAND 'makedir ram:test' || Nr + 1
>
> END
>
>> EXIT
>>
>
> This does not loop it exits
> you are missing an "END" Statement (I added it)

Yes, I've forgot the end in the mail, sorry, but the problem is that there
is for shure an endless loop in this case. Try to execute it, it makes you
100 Directories in Ram, verry cool, a senseless script so far :))))!

Eventually I've explained it not verry good, sorry, but my english is poor
:(((

Ok, again:
I send one picture to a Paintprogram to convert a picture to an other
format. The whole script shoud only play once, if there is no file by now in
the ram it should save it as file.jpg. If file. jpg exists it should save it
as file.jpg1 and so on, but now it does an "endless" loop (cames from DO Nr
1 TO 99) so it does the same thing 99 times, but I only want it once, but
with the next higher filenumber.

Any ideas?

Regards



Gruss, Michael Jaccoud

--------------------------------------------------------
Best regards Return mail address:
Michael Jaccoud topgun@pop.ch
--------------------------------------------------------

--------------------------- ONElist Sponsor ----------------------------

??? Computer Questions ==> Free Answers From Live Experts ! ! !
go to EXPERTCITY.COM
<a href=" http://clickme.onelist.com/ad/expertcity15 ">Click Here</a>

------------------------------------------------------------------------
ARexx mailing list - No flames, no overquoting, no crossposting. Unsubscribe: Blank mail to mailto:arexx-unsubscribe@onelist.com