[futurebasic] Re: [FB] quick question on the "output file" command

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : July 1999 : Group Archive : Group : All Groups

From: Jamin <benjamen@...>
Date: Tue, 13 Jul 1999 11:22:34 +1000
Bowerbird@... said something like:

> i'd like to do this:
>      ndt$=name$+" "+date$+" "+time$
>      output file ndt$
>
> (ignore for now the fact that the colons
> in time$ would cause an error in a filename,
> as i would replace them with semi-colons.)

If you really want to do this, then grab a copy of my "Rez" plugin.  All you have to do is add a option-shift-v character to the end of your output file name and it will append the date and time:

OUTPUT FILE "My App×"

and you will get:

My App×01/02/99 10.58

The source is provided, so you can change the formatting if you need to.  The only problem I found while adding this feature, was that if you built an app 2 times within the space of a minute, you would get a duplicate file name error.  If you wanted to, you could add "seconds" to get around this problem , but then the apps name would have to be quite small - we only have about 30 chars to play with.  You could also just delete the offending file, but I usually stear clear of deleteing anything, just incase I make a mistake!

http://www.ozemail.com.au/~benjamen/

Jamin