| From: | Donald Dalley |
| Date: | 20 Oct 99 at 17:52:01 |
| Subject: | Re: Re: Filenumbering |
From: Donald Dalley <ddalley@idirect.com>
On 20-Oct-99, Michael Jaccoud wrote:
>
> >> /*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
> 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?
Michael: the way it is written, you are making 100 directories.
Why not just make the directory once, then assume that it will be there until
the process is finished? Use some error checking code for failure of writting
the file. This way you seperate the directory making process from the file
writting process. This would be less confusing.
---===///||| Donald Dalley |||\\\===---
The World of AmiBroker Support
http://webhome.idirect.com/~ddalley
Member: ICOA and Team AMIGA
--------------------------- 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