Re: [Gambas-user] Searching a key in the array of gb.settings

2008-11-10 Thread Doriano Blengino
[EMAIL PROTECTED] ha scritto: >> There is no reason you had to worry about at least for me. >> > > I fear, this time, I have to correct my self. I think it should be: > ...at least NOT for me! > Still not sure about the correctness of this sentence. > What I wanted to say: No problem for

Re: [Gambas-user] Searching a key in the array of gb.settings

2008-11-10 Thread gambas
Am Sonntag, 9. November 2008 10:37:40 schrieb [EMAIL PROTECTED]: Hi Doriano, > There is no reason you had to worry about at least for me. I fear, this time, I have to correct my self. I think it should be: ...at least NOT for me! Still not sure about the correctness of this sentence. What I

Re: [Gambas-user] Searching a key in the array of gb.settings

2008-11-09 Thread gambas
Hi Doriano, Am Sonntag, 9. November 2008 10:00:11 schrieb Doriano Blengino: > [EMAIL PROTECTED] ha scritto: > >> What you are trying to do could only work in true interpreted languages > >> - perhaps; > > > > That's the answer why it works in Perl! :whistle: > >> it is a total non-sense in every s

Re: [Gambas-user] Searching a key in the array of gb.settings

2008-11-09 Thread Doriano Blengino
[EMAIL PROTECTED] ha scritto: > >> What you are trying to do could only work in true interpreted languages >> - perhaps; >> > That's the answer why it works in Perl! :whistle: > > >> it is a total non-sense in every serious programming language. >> I have to correct myself. The disti

Re: [Gambas-user] Searching a key in the array of gb.settings

2008-11-08 Thread gambas
Am Samstag, 8. November 2008 12:11:51 schrieb Doriano Blengino: > [EMAIL PROTECTED] ha scritto: > > There is just another thing with gb.settings. > > > > Let's say, the user entered a number on his keypad, which is registered > > in my seetings.file and associated with the action: > > "SunIsShinigO

Re: [Gambas-user] Searching a key in the array of gb.settings

2008-11-08 Thread gambas
Am Samstag, 8. November 2008 18:46:22 schrieb Benoit Minisini: > I implemented that feature in Gambas 3, revision #1682: > > FOR EACH Key IN Settings.Keys["General"] > PRINT Key > NEXT > > That will give you all keys under the 'General' section. Many, many thanks! :-) Greetz Stevie --

Re: [Gambas-user] Searching a key in the array of gb.settings

2008-11-08 Thread Benoit Minisini
On vendredi 7 novembre 2008, Doriano Blengino wrote: > [EMAIL PROTECTED] ha scritto: > > Am Freitag, 7. November 2008 17:50:55 schrieb Benoit Minisini: > >> On vendredi 7 novembre 2008, [EMAIL PROTECTED] wrote: > >>> But one question remains: > >>> Is there a way to do something (say PRINT() ) with

Re: [Gambas-user] Searching a key in the array of gb.settings

2008-11-08 Thread Doriano Blengino
[EMAIL PROTECTED] ha scritto: > There is just another thing with gb.settings. > > Let's say, the user entered a number on his keypad, which is registered in my > seetings.file and associated with the action: > "SunIsShinigOpenRoofOFCarAndHaveAFunnyRide" :-) > > Print (hCFG["Action/" & sItem]) > Ou

Re: [Gambas-user] Searching a key in the array of gb.settings

2008-11-08 Thread gambas
There is just another thing with gb.settings. Let's say, the user entered a number on his keypad, which is registered in my seetings.file and associated with the action: "SunIsShinigOpenRoofOFCarAndHaveAFunnyRide" :-) Print (hCFG["Action/" & sItem]) Ouput: SunIsShinigOpenRoofOFCarAndHaveAFunnyRi

Re: [Gambas-user] Searching a key in the array of gb.settings

2008-11-07 Thread Doriano Blengino
[EMAIL PROTECTED] ha scritto: > Am Freitag, 7. November 2008 17:50:55 schrieb Benoit Minisini: > >> On vendredi 7 novembre 2008, [EMAIL PROTECTED] wrote: >> >>> But one question remains: >>> Is there a way to do something (say PRINT() ) with each element of the >>> settings.object without k

Re: [Gambas-user] Searching a key in the array of gb.settings

2008-11-07 Thread gambas
The story goes on! :-) I'm on gambas3. Like mentioned in my last post, I try to check if the users choice "sItem" is a valid entry in my array of gb.settings. Print (hCFG["Action/" & sItem]) If (IsObject(hCFG["Action/" & sItem]) = True) Then Print("Found!!!\n") Else

Re: [Gambas-user] Searching a key in the array of gb.settings

2008-11-07 Thread gambas
Am Freitag, 7. November 2008 17:50:55 schrieb Benoit Minisini: > On vendredi 7 novembre 2008, [EMAIL PROTECTED] wrote: > > But one question remains: > > Is there a way to do something (say PRINT() ) with each element of the > > settings.object without knowing each single key??? > > > > Greetz > > S

Re: [Gambas-user] Searching a key in the array of gb.settings

2008-11-07 Thread Benoit Minisini
On vendredi 7 novembre 2008, [EMAIL PROTECTED] wrote: > > But one question remains: > Is there a way to do something (say PRINT() ) with each element of the > settings.object without knowing each single key??? > > Greetz > Stevie > No way. Do you need it? -- Benoit Minisini

Re: [Gambas-user] Searching a key in the array of gb.settings

2008-11-07 Thread gambas
Am Freitag, 7. November 2008 17:21:35 schrieb Ron_1st: > Print hCFG["Action/" & sItem] ??? BINGO!!! You're my hero!!! :-))) > > Sorry, if this a stupid question, but I'm still learning all this > > OO-stuff. > > We all had a time tho learn walking on the earth (program in gambas) :) Th

Re: [Gambas-user] Searching a key in the array of gb.settings

2008-11-07 Thread Ron_1st
On Friday 07 November 2008, [EMAIL PROTECTED] wrote: > Accessing a single element this way doesn't work, too: > Print hCFG["Action/sItem"] ...because the quotes masks sItem > > This try gives me a syntax-error > Print hCFG["Action/"sItem] Print hCFG["Action/" & sItem] ??? > > Any ideas?? > > S

[Gambas-user] Searching a key in the array of gb.settings

2008-11-07 Thread gambas
Hello List, first question: Is the settings-object an array or a collection?? Onlinehelp says: " ...acts like an read, write array" but the syntax for accessing its elements looks like collection. Main-problem: I'm writing a servicemenu which items should be configured through a settingsfil