Re: [Gambas-user] Using property on a string array

2015-09-21 Thread Fabien Bodard
No this assignment replace the internal list. Le 21 sept. 2015 10:26, "Moviga Technologies" a écrit : > Thank you! This works! What I do not understand is if .List is returning > a copy, then even cbxProfile.List = [] should not really work?? Because > you are still assigning the copy of the list

Re: [Gambas-user] Using property on a string array

2015-09-21 Thread Moviga Technologies
Thank you! This works! What I do not understand is if .List is returning a copy, then even cbxProfile.List = [] should not really work?? Because you are still assigning the copy of the list, and not the list itself... --

Re: [Gambas-user] Using property on a string array

2015-09-20 Thread Adrien Prokopowicz
Le Sun, 20 Sep 2015 21:01:21 +0200, Moviga Technologies a écrit: > > Haha! Wow! I must have been to dizzy yesterday :) Sorry about that! > > But, then - why isn't this working: > > cbxProfile.Add(MGlobal.DEFAULTSTR) 'This works > cbxProfile.List.Insert(MGlobal.Profiles) 'This adds nothing, even

Re: [Gambas-user] Using property on a string array

2015-09-20 Thread Moviga Technologies
Haha! Wow! I must have been to dizzy yesterday :) Sorry about that! But, then - why isn't this working: cbxProfile.Add(MGlobal.DEFAULTSTR) 'This works cbxProfile.List.Insert(MGlobal.Profiles) 'This adds nothing, even though the array contains entries. The code is already in FConfig as you

Re: [Gambas-user] Using property on a string array

2015-09-20 Thread Jussi Lahtinen
I rechecked your project, and no FQuick.Init() is not called. However FConfig.Init() is called twice in MMain.Init(). So I assume that is supposed to be for FQuick. After making this modification in your code I get "I Profiles: test" to console. Jussi On Sun, Sep 20, 2015 at 12:11 PM, Moviga Te

Re: [Gambas-user] Using property on a string array

2015-09-20 Thread Moviga Technologies
I do not understand what you mean by "Still no". MMain.Init() is calling FQuick.Init() As for the conf files, you can just place an empty file file with a *.conf extension in the dir, or use the GUI to create a new profile (the pluss sign in FConf).

Re: [Gambas-user] Using property on a string array

2015-09-19 Thread Jussi Lahtinen
Still no. Also there isn't config for the test. Jussi On Sun, Sep 20, 2015 at 2:55 AM, Moviga Technologies wrote: > > > Ahh! Sorry! Try now! > > > > -- > > ___ > Gambas-user

Re: [Gambas-user] Using property on a string array

2015-09-19 Thread Jussi Lahtinen
FQuick.Init() is never run. There is not any reference to it. Jussi On Sun, Sep 20, 2015 at 2:39 AM, Moviga Technologies wrote: > > > This is what I am working with > > -- > > __

Re: [Gambas-user] Using property on a string array

2015-09-19 Thread Jussi Lahtinen
Can you provide way to reproduce this problem? Like runnable project and config for it? Jussi On Sat, Sep 19, 2015 at 5:30 PM, Moviga Technologies wrote: > In MGlobal I have this: > > > > > ✂✂✂✂✂ > Private $aProfil

Re: [Gambas-user] Using property on a string array

2015-09-19 Thread Moviga Technologies
Forgot to add that I have this as well in MGlobal :) Property Read Profiles As String[] -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourcefor

[Gambas-user] Using property on a string array

2015-09-19 Thread Moviga Technologies
In MGlobal I have this: ✂✂✂✂✂ Private $aProfiles As New String[] For Each f In Dir(CONFIG_FOLDER, "*.conf", gb.File) $aProfiles.Add(File.BaseName(f)) Debug "Found the profile: " & File.BaseName(f) Debug $aProf