T.R | Title | User | Personal Name | Date | Lines |
---|
2499.1 | Save as ACII | TEACH::BOB | MS-DOS....Just say NO! | Sun Apr 23 1989 22:46 | 5 |
| Try saving your BASIC probramme as ASCII text. That should do the
trick.
BOB
|
2499.2 | yep | NZOV01::MCKENZIE | Help STOP the greenhouse effect! | Sun Apr 23 1989 23:33 | 8 |
| re .1 - thats the ticket - I know this works with at least 2 other
basic compiliers...
By the way - Did you guys know that GFA basic doesnt have a compilier?
looks like Hi-soft basic will be the way to go
ok - wheres the petty cash jar.......
|
2499.3 | How? | GUCCI::HERB | | Sun Apr 23 1989 23:42 | 1 |
| How do you save the Amiga basic program to an ASCII file?
|
2499.4 | | LEDS::ACCIARDI | | Sun Apr 23 1989 23:58 | 6 |
|
From the AmigaBASIC interpreter, type (including the quotes)...
SAVE "DF1:FILENAME", a
Ed.
|
2499.5 | hopefully helpful... | NZOV01::MCKENZIE | Help STOP the greenhouse effect! | Sun Apr 23 1989 23:58 | 16 |
| Re .-1
o load program into memory using LOAD "[filename]"
o delete program from disk by using "KILL [filename]"
o save"[filename]",A
^
|
+---- means save file in ASCII mode
once saved in ASCII mode, further saves should overly file
in ASCII mode
Hope that helps
Phil
|
2499.6 | hmmmmmm | NZOV01::MCKENZIE | Help STOP the greenhouse effect! | Mon Apr 24 1989 00:01 | 9 |
| damn - Ed beat me to it
Hey Ed - Ive had problems using SAVE "disk:filename",a when program
has been previously saved in binary (default) format...
The only way Ive got around it is to do as I suggested in .5
any ideas?
|
2499.7 | confessions of a slob | LEDS::ACCIARDI | | Mon Apr 24 1989 00:16 | 13 |
|
I did the save from the Basic command line, not the SAVE AS from the
Basic menu bar. I believe that AmigaBASIC's file requestor may be
brain damaged (or I am), since I never figured out how to get it to do
an ASCII save. If you type '"RAM:TEST", a' into the Basic file
requestor, it saves a tokenized file called "RAM:TEST, a". Wierd.
Then again, I'm old and fat and lazy and don't do much Basic
programming these days, so I may just not know how to do it from the
file requestor.
Ed.
|
2499.8 | Learning Modula-2 (no more Amigabasic) | ADO75A::MCGHIE | | Tue Apr 25 1989 08:17 | 9 |
| Of course a safer approach would be to save it to a different filename,
Murphy's Law says the machine will hang or there'll be a power failure
bewtween the time you type the KILL command and the SAVE completes.
And of course, we all keep regular backups don't we ?!?!?!
Mike
|
2499.9 | backups - the lifeforce of the universe... | NZOV01::MCKENZIE | Help STOP the greenhouse effect! | Tue Apr 25 1989 17:26 | 18 |
| re .-1
> And of course, we all keep regular backups don't we ?!?!?!
you betcha!!!!
re .all
Please keep in mind that this problem of basic failing to overwrite
a binary format basic program stored on disk with an ASCII format
program refers to the usage of AMIGABasic - I dont know what other
interpreters do - might pay to experiment with Hisoft and post
results here.....
as .-1 implied though - make a backup copy of your disk first...
Cheers
|
2499.10 | Changed it into ascii form | GUCCI::HERB | | Tue Apr 25 1989 21:49 | 34 |
| I have ran into another problem with hisoft basic. I am trying
to use the program that does CLI commands in basic (There is a note
in this notesfile that has the listing).
print "loading libs"
library "dos.library"
declare function xopen& library
declare function execute% library
main:
cli "play test.smus"
finish:
library close
end
sub cli (command$) static
shared error.code%
(etc....)
This program would work fine in amigabasic but when I try to run
it with hisoftbasic there is a error that says
error 25 name (not command$) expected in parameter list at line
11 in file cl.BAS
continue? (y/n)
" sub cli (command$) static"
is the line with the error.
What am I doing wrong? What does the error mean?
Al
|