Re: [Gambas-user] Settings

2014-07-27 Thread B Bruen
On Mon, 28 Jul 2014 14:56:38 +0930 B Bruen wrote: > On Mon, 28 Jul 2014 07:18:47 +0200 > Benoît Minisini wrote: > > > Maybe not clicking the "stop on each error" button in the IDE would > > solve the problem? :-) > > > > -- > > Benoît Minisini > > > > "Stop on each error" is not clicked h

Re: [Gambas-user] Settings

2014-07-27 Thread Shane
the next thing did anyone play it and what are some of your thoughts On 28/07/14 15:43, Shane wrote: > Thanks benoit that fixed it > But i'm not sure why but i guess you do > > Thanks Shane > > > On 28/07/14 15:26, B Bruen wrote: >> On Mon, 28 Jul 2014 07:18:47 +0200 >> Benoît Minisini wrote: >>

Re: [Gambas-user] Settings

2014-07-27 Thread Shane
Thanks benoit that fixed it But i'm not sure why but i guess you do Thanks Shane On 28/07/14 15:26, B Bruen wrote: > On Mon, 28 Jul 2014 07:18:47 +0200 > Benoît Minisini wrote: > >> Le 28/07/2014 06:59, B Bruen a écrit : >>> On Sun, 27 Jul 2014 20:35:53 -0600 >>> Randall Morgan wrote: >>>

Re: [Gambas-user] Settings

2014-07-27 Thread Benoît Minisini
Le 28/07/2014 07:26, B Bruen a écrit : >> >> Maybe not clicking the "stop on each error" button in the IDE would >> solve the problem? :-) >> >> -- >> Benoît Minisini >> > > "Stop on each error" is not clicked here and I can reproduce the reported > error. > B > If I untoggle the "Stop on each er

Re: [Gambas-user] Settings

2014-07-27 Thread B Bruen
On Mon, 28 Jul 2014 07:18:47 +0200 Benoît Minisini wrote: > Le 28/07/2014 06:59, B Bruen a écrit : > > On Sun, 27 Jul 2014 20:35:53 -0600 > > Randall Morgan wrote: > > > >> Must be too big on your end. I know I and others have sent larger files... > >> But the link works also. I'll look at your

Re: [Gambas-user] Settings

2014-07-27 Thread B Bruen
On Mon, 28 Jul 2014 14:29:43 +0930 B Bruen wrote: > On Sun, 27 Jul 2014 20:35:53 -0600 > Randall Morgan wrote: > > > Must be too big on your end. I know I and others have sent larger files... > > But the link works also. I'll look at your code and get back to you. > > > > I have had a bit of

Re: [Gambas-user] Settings

2014-07-27 Thread Benoît Minisini
Le 28/07/2014 06:59, B Bruen a écrit : > On Sun, 27 Jul 2014 20:35:53 -0600 > Randall Morgan wrote: > >> Must be too big on your end. I know I and others have sent larger files... >> But the link works also. I'll look at your code and get back to you. >> > > I have had a bit of a look at this. To

Re: [Gambas-user] Settings

2014-07-27 Thread B Bruen
One other strange thing. You have a FMain form in the project. It doesn't appear in the project browser. Why not is a mystery to me. But I just deleted it and the project runs OK. You might like to use your file manager to delete it as well. (It has nothing to do with the Settings fail, though

Re: [Gambas-user] Settings

2014-07-27 Thread B Bruen
On Sun, 27 Jul 2014 20:35:53 -0600 Randall Morgan wrote: > Must be too big on your end. I know I and others have sent larger files... > But the link works also. I'll look at your code and get back to you. > I have had a bit of a look at this. To me, it appears that sdl is doing something nast

Re: [Gambas-user] Settings

2014-07-27 Thread Randall Morgan
I ran your code and at first I got an error on a line like Settings["HighScore"] = SprEngine.Highscore. I commented that out and run the code and found the settings file was not created (this should be flagged as an error if the file does not already exist...) Next, I commented out all your code a

Re: [Gambas-user] Settings

2014-07-27 Thread Randall Morgan
Must be too big on your end. I know I and others have sent larger files... But the link works also. I'll look at your code and get back to you. On Sun, Jul 27, 2014 at 8:21 PM, Shane wrote: > yep to big try this > > > https://drive.google.com/file/d/0B7AcxnE14xeaLVFDUGhja19NcUU/edit?usp=shari

Re: [Gambas-user] Settings

2014-07-27 Thread Shane
yep to big try this https://drive.google.com/file/d/0B7AcxnE14xeaLVFDUGhja19NcUU/edit?usp=sharing On 28/07/14 11:54, Shane wrote: > I'll try its 3.8MB is that to big ? > > On 28/07/14 11:38, Randall Morgan wrote: >> Can you attached your project? >> >> >> On Sun, Jul 27, 2014 at 6:46 PM, Shane w

Re: [Gambas-user] Settings

2014-07-27 Thread Shane
I'll try its 3.8MB is that to big ? On 28/07/14 11:38, Randall Morgan wrote: > Can you attached your project? > > > On Sun, Jul 27, 2014 at 6:46 PM, Shane wrote: > >> Something strange is going on here i just put in the code " Print >> Settings.Path " and i get the same error >> but the settings

Re: [Gambas-user] Settings

2014-07-27 Thread Randall Morgan
Can you attached your project? On Sun, Jul 27, 2014 at 6:46 PM, Shane wrote: > Something strange is going on here i just put in the code " Print > Settings.Path " and i get the same error > but the settings in my other projects work fine? > > On 28/07/14 10:35, Shane wrote: > > still not workin

Re: [Gambas-user] Settings

2014-07-27 Thread Shane
Something strange is going on here i just put in the code " Print Settings.Path " and i get the same error but the settings in my other projects work fine? On 28/07/14 10:35, Shane wrote: > still not working i even changed the project name but i still get the > same error and there are no files i

Re: [Gambas-user] Settings

2014-07-27 Thread Shane
still not working i even changed the project name but i still get the same error and there are no files in the setting dir with my project name. I think from memory there was at some stage but i deleted it to see if that would fix the problem. Is there anywhere that gambas keeps a record of thi

Re: [Gambas-user] Settings

2014-07-27 Thread Matti
Have a look at http://gambaswiki.org/wiki/comp/gb.settings for the structure of the settings file. And look at http://gambaswiki.org/wiki/comp/gb.settings/settings how to save a value. So, the syntax is Settings["High_Score/xxx"] = HighScore. Regards, Matti Am 27.07.2014 05:02, schrieb Shane: >

[Gambas-user] Settings

2014-07-26 Thread Shane
I'm getting file already exists error when trying to run this code Settings["High_Score"] = HighScore am i doing this the right way? also this is a sdl program. [System] Gambas=3.5.90 OperatingSystem=Linux Kernel=3.8.0-35-generic Architecture=x86_64 Distribution=Linux Mint 15 Olivia Desktop=

Re: [Gambas-user] Settings: how to get (unknown) Keys?

2014-07-05 Thread Benoît Minisini
Le 05/07/2014 14:47, Benoît Minisini a écrit : > Le 18/06/2014 15:08, wig a écrit : >> >> How the get the (unknown keys) from a Settings file? >> >> >> Terminology of Keys and "Slot" for the group of keys in a settings file >> taken from documentation; >> >> This gives the names of the slots: >> >>

Re: [Gambas-user] Settings: how to get (unknown) Keys?

2014-07-05 Thread Benoît Minisini
Le 18/06/2014 15:08, wig a écrit : > > How the get the (unknown keys) from a Settings file? > > > Terminology of Keys and "Slot" for the group of keys in a settings file > taken from documentation; > > This gives the names of the slots: > > >Dim SettingsToImport As New Settings(User.Home &/ > "

[Gambas-user] Settings: how to get (unknown) Keys?

2014-06-18 Thread wig
How the get the (unknown keys) from a Settings file? Terminology of Keys and "Slot" for the group of keys in a settings file taken from documentation; This gives the names of the slots: Dim SettingsToImport As New Settings(User.Home &/ ".config/gambas3/gambas3.conf") Dim sKeySlot As Stri

Re: [Gambas-user] Settings

2011-03-05 Thread Benoît Minisini
> 2011/3/5 Phạm Quang Dương : > > Hi, > > > > I tried use Settings to read index.theme of icon theme: > > > > cfgReader = NEW Settings("/path/to/index.theme") > > > > With the file "~/.icons/elementaryXubuntu/index.theme" > > [Icon Theme] > > > > Directories=actions/16,actions/22,. > >

Re: [Gambas-user] Settings

2011-03-05 Thread Fabien Bodard
2011/3/5 Phạm Quang Dương : > Hi, > > I tried use Settings to read index.theme of icon theme: > > cfgReader = NEW Settings("/path/to/index.theme") > > With the file "~/.icons/elementaryXubuntu/index.theme" > [Icon Theme] > > Directories=actions/16,actions/22,. > . > > cfgReader["Icon T

[Gambas-user] Settings

2011-03-05 Thread Phạm Quang Dương
Hi, I tried use Settings to read index.theme of icon theme: cfgReader = NEW Settings("/path/to/index.theme") With the file "~/.icons/elementaryXubuntu/index.theme" [Icon Theme] Directories=actions/16,actions/22,. . cfgReader["Icon Theme/Directories"] return whole line. It's OK. Bu

Re: [Gambas-user] Settings component

2011-02-14 Thread Jussi Lahtinen
OK, I solved this. I looked these and I didn't get it... http://gambasdoc.org/help/comp/gb.settings/settings/path?v3 http://gambasdoc.org/help/comp/gb.settings/settings?v3 I tried this: Dim hS As New Settings hS.Path = Then I looked at source code. And the answer is this: Dim hS As New S

Re: [Gambas-user] Settings component

2011-02-13 Thread richard terry
On Monday 14 February 2011 09:12:24 Jussi Lahtinen wrote: > Hi! > I think I have missed something... documentation says about Settings: > "If you use this class statically, then the default project > configuration file will be used." > > And path property is read only. > > So, how can you determi

[Gambas-user] Settings component

2011-02-13 Thread Jussi Lahtinen
Hi! I think I have missed something... documentation says about Settings: "If you use this class statically, then the default project configuration file will be used." And path property is read only. So, how can you determine what path and file to use to store settings? Jussi --

Re: [Gambas-user] Settings with VSplit control

2010-12-12 Thread richard terry
On Monday 13 December 2010 01:25:10 Phạm Quang Dương wrote: My code is used in probably hundreds of splits all over my program and works 100%. of the time. I'd never ever try and re-size forms or controls using the re-size event - let the properties of the forms/controls do that for you, combin

Re: [Gambas-user] Settings with VSplit control

2010-12-12 Thread Phạm Quang Dương
OK, thank you all. @Terry: your code is like mine. It can not restore VSplit layout. I think problem from Form_Open and Form_Resize. So I did: SUB Form_Open() Dim i as Integer Settings.Read(ME.Window) i = Val(Settings["Group/key"]) vsplit1.Layout = i & "," & (vsplit1.Height - i) END SUB Form_Re

Re: [Gambas-user] Settings with VSplit control -oops

2010-12-12 Thread richard terry
On Sunday 12 December 2010 21:38:49 richard terry wrote: Sorry, didn't delete something as I was cutnpasting and typing: try again: Simple sample code: Public sub Save_Settings() Settings["Your_Section_Name/HSplit_Main.Layout"] = HSplit_Main.Layout end to restore this: Public Sub Set

Re: [Gambas-user] Settings with VSplit control

2010-12-12 Thread richard terry
Simple sample code: Public sub Save_Settings() Settings["Your_Section_Name/HSplit_Main.Layout"] = HSplit_Main.Layout end to restore this: Public Sub Settings_Load() HSplit_Main.Layout = Settings["Your_Section_Name/HSplit_Main.Layout"] = HSplit_Main.Layout End BTW settings is located usu

Re: [Gambas-user] Settings with VSplit control

2010-12-11 Thread Benoît Minisini
> Hi, > > How to save the layout of VSplit? > I tried: > > SUB Form_Open() > vsplit1.settings = Settings["Group/Key"]; > PRINT Settings["Group/Key"] ' (1) > PRINT vsplit1.settings ' (2) > END > > Of course > > SUB Form_Close() > Settings["Group/Key"] = vsplit1.settings > END > > In running, (1

[Gambas-user] Settings with VSplit control

2010-12-11 Thread Phạm Quang Dương
Hi, How to save the layout of VSplit? I tried: SUB Form_Open() vsplit1.settings = Settings["Group/Key"]; PRINT Settings["Group/Key"] ' (1) PRINT vsplit1.settings ' (2) END Of course SUB Form_Close() Settings["Group/Key"] = vsplit1.settings END In running, (1) and (2) are different, all numbers

Re: [Gambas-user] settings INPUT <> settings OUTPUT

2009-08-07 Thread Benoît Minisini
> Am Dienstag, den 04.08.2009, 02:04 +0200 schrieb Benoît Minisini: > > > Salut Benoit, > > > > > > this line was written by settings > > > > > > Descript="'that was only yesterday' a wonderful,\\nnever before seen > > > way to design a\\nprinting template\\nhaving \\nfun with it\\nnew" > > > > > >

Re: [Gambas-user] settings INPUT <> settings OUTPUT

2009-08-04 Thread Charlie Reinl
Am Dienstag, den 04.08.2009, 02:04 +0200 schrieb Benoît Minisini: > > Salut Benoit, > > > > this line was written by settings > > > > Descript="'that was only yesterday' a wonderful,\\nnever before seen way > > to design a\\nprinting template\\nhaving \\nfun with it\\nnew" > > > > and this is read

Re: [Gambas-user] settings INPUT <> settings OUTPUT

2009-08-03 Thread Benoît Minisini
> Salut Benoit, > > this line was written by settings > > Descript="'that was only yesterday' a wonderful,\\nnever before seen way > to design a\\nprinting template\\nhaving \\nfun with it\\nnew" > > and this is read by settings > > 'that was only yesterday' a wonderful,\ > never before seen way to

[Gambas-user] settings INPUT <> settings OUTPUT

2009-08-03 Thread Charlie Reinl
Salut Benoit, this line was written by settings Descript="'that was only yesterday' a wonderful,\\nnever before seen way to design a\\nprinting template\\nhaving \\nfun with it\\nnew" and this is read by settings 'that was only yesterday' a wonderful,\ never before seen way to design a\ printin