Saving when you don't want it to...

Just starting out? Need help? Post your questions and find answers here.
hinckleyj
New User
New User
Posts: 7
Joined: Sat Mar 12, 2016 3:32 pm

Saving when you don't want it to...

Post by hinckleyj »

Hi All,

I am new to PureBasic and have an odd issue which I am sure has an easy fix?

When I save a program, and later open it, I may try some changes that I don't want to keep (thus, leaving the original saved version as it was).

However, I have noticed that PureBasic saves the 'test changes' even though I have not hit Save.

I have disabled the Autosave option in Preferences > Editor and yet it still saves what I don't want to be saved?

Is there any way to only save when I click 'Save'?

Thanks in advance
Dude
Addict
Addict
Posts: 1907
Joined: Mon Feb 16, 2015 2:49 pm

Re: Saving when you don't want it to...

Post by Dude »

I'm not sure what's going wrong, but I have auto-save turned off and it never saves unless I click the Save icon.
infratec
Always Here
Always Here
Posts: 7588
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: Saving when you don't want it to...

Post by infratec »

Hi,

if you make 'test changes' and want to compile the program it has to be saved,
else you compile the file which is stored on the disk without your changes.

But you can always go back with the Sessionhistory function.
Or use CompilerIf
Or save it with a different name
Or ...
...
...

Bernd
User avatar
Danilo
Addict
Addict
Posts: 3036
Joined: Sat Apr 26, 2003 8:26 am
Location: Planet Earth

Re: Saving when you don't want it to...

Post by Danilo »

infratec wrote:if you make 'test changes' and want to compile the program it has to be saved,
else you compile the file which is stored on the disk without your changes.
The compiler could get the input directly from the IDE, or from a temporary saved file.
infratec wrote:But you can always go back with the Sessionhistory function.
Enabling the session-history is a no-go with latest 'stable' LTS release.
Dude
Addict
Addict
Posts: 1907
Joined: Mon Feb 16, 2015 2:49 pm

Re: Saving when you don't want it to...

Post by Dude »

infratec wrote:if you make 'test changes' and want to compile the program it has to be saved
No it doesn't. I can load a source, make some changes, hit F5 to compile/run it, then quit after; all without the source being saved or changed.
infratec
Always Here
Always Here
Posts: 7588
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: Saving when you don't want it to...

Post by infratec »

Danilo wrote:Enabling the session-history is a no-go with latest 'stable' LTS release.
Here it works without problems. (Win7 x64 with PB5.42 x86)
Last edited by infratec on Wed Mar 16, 2016 11:20 am, edited 1 time in total.
User avatar
Danilo
Addict
Addict
Posts: 3036
Joined: Sat Apr 26, 2003 8:26 am
Location: Planet Earth

Re: Saving when you don't want it to...

Post by Danilo »

infratec wrote:Here it works without problems. (Win7 x64 with PB5.42 x86)
Lucky you! :D

Any specific reason you still use PB x86 on x64 OS?
Post Reply