Ultimate Amiga

Network Boards => AMOS Language Discussion => AMOS Factory => AMOS Professional Forum => Topic started by: Brick Nash on May 29, 2016, 07:44:01 PM

Title: Can't save work
Post by: Brick Nash on May 29, 2016, 07:44:01 PM
Hey folks,

Quite chuffed with myself and my little program but I just can't get it to save. It keeps asking me to ensure the file name ends with .AMOS and it does but it just keeps flashing up NOT DONE in red at the top of the editor every time I try and when I check nothing has been saved.

I set up a little folder called projects in my Amos folder on Windows (Maybe that's my problem) and I went to save the file in there but it's just not happening. Should I set up a drawer within workbench instead? How do I exit to workbench to make a drawer without losing my work though?

Not sure what to do. Thanks!
Title: Re: Can't save work
Post by: bruceuncle on May 29, 2016, 10:15:54 PM
Don't try saving to Windows from the Amiga side, the file names and formats are not compatible.  Save to the Amiga file structure - the emulator will take care of the format.
You can switch between AMOS & Workbench using [left amiga] + [A].  On the PC keyboard, the two 'Windows' keys function as the left & right Amiga keys.
Although the virtual hard drive for the emulator is just a directory in Windows (or a hard file - I prefer a directory myself) be very careful if you start working with the files on the Windows sides.  Problems usually arise with incompatible path names and text formats.  I frequently edit text sources in Windows but you have to be careful that the content doesn't get converted to Unicode (16 bit characters).  When writing text out from VB or VBA, this means meticulously using the VBA 'B' instructions to stop any Unicode 'leaks'.  The 'B' instructions are ones like ChrB$, InstrB, etc.
Sent from my Lumia 640 using Tapatalk
Title: Re: Can't save work
Post by: SamuraiCrow on May 30, 2016, 08:52:54 AM
If you use a Windows text editor, make sure to use the Latin1 character set with Unix line endings.
Title: Re: Can't save work
Post by: Brick Nash on May 30, 2016, 09:31:10 AM
As always great advice, thanks so much. This forum is great!

I lost my work last night but I managed to get it to save and I'm determined to do better today! :)
Title: Re: Can't save work
Post by: Volvo_0ne on May 30, 2016, 06:54:53 PM
As always great advice, thanks so much. This forum is great!

I lost my work last night but I managed to get it to save and I'm determined to do better today! :)

Remember to save  regularly, then you won't lose so much if things go t*ts up :D