Search found 203 matches

by stevedee
Tuesday 24th March 2020 5:40pm
Forum: General
Topic: [Solved] Create settings conf file at beginning
Replies: 5
Views: 72

Re: Create settings conf file at beginning

cogier wrote:
Tuesday 24th March 2020 5:21pm
...You can force the settings to save with Settings.Save.
Sorry guys, I completely missed that.
by stevedee
Tuesday 24th March 2020 4:56pm
Forum: General
Topic: [Solved] Create settings conf file at beginning
Replies: 5
Views: 72

Re: Create settings conf file at beginning

...I need to create the settings conf file when the first time running, please, how to do ? I don't think you can control the way the Setting feature generates the config file (i.e. it always waits until your program is closing to do this, even if you put "Settings["Stack"] = 55" anywhere other tha...
by stevedee
Tuesday 24th March 2020 2:59pm
Forum: General
Topic: [Solved] Open with default text editor
Replies: 4
Views: 63

Re: Open with default text editor

Philippe734 wrote:
Tuesday 24th March 2020 1:10pm
In my app, I wish to open a text file...
As an alternative, take a look at "TextEditor" in the component: gb.form.editor
by stevedee
Friday 13th March 2020 11:34am
Forum: General
Topic: Help needed with IDE
Replies: 2
Views: 164

Re: Help needed with IDE

bill-lancaster wrote:
Friday 13th March 2020 9:09am
I wonder what I did?
Sounds like you have just un-docked it.

Click F11 to show the un-docked console, then click on the un-dock button to re-dock it.
undockConsole.png
undockConsole.png (39.58 KiB) Viewed 160 times
by stevedee
Tuesday 03rd March 2020 10:17am
Forum: General
Topic: A Dirty Guide to OOP #1
Replies: 16
Views: 1024

Re: A Dirty Guide to OOP #1

Cedron wrote:
Monday 02nd March 2020 6:17pm
...Writing code generators is fairly straightforward. Given a list of fields and their types, there is certainly a formula for codifying that as a Gambas Class file....
Hey that sounds interesting. Can you give us a simple code example?
by stevedee
Wednesday 26th February 2020 8:32pm
Forum: General
Topic: A Dirty Guide to OOP #1
Replies: 16
Views: 1024

Re: A Dirty Guide to OOP #1

salihburhan wrote:
Wednesday 26th February 2020 11:41am
...Can I create a class?...
Cogier's example shows creating objects from classes, but I don't believe that it is possible to create a class at runtime, if that is what you are asking.

Languages like VB.Net have a CreateClass command, but I don't think Gambas has an equivalent.
by stevedee
Sunday 23rd February 2020 8:07pm
Forum: General
Topic: combox.index
Replies: 2
Views: 152

Re: combox.index

I am working with a combo box and trying to assign a value to the combox.index ComboBox1.Index = ComboBox1.Count Print ComboBox1.Index, ComboBox1.Count out put is -1 7 ...... Dim x As Integer = ComboBox1.Count ComboBox1.Index = x Print x, ComboBox1.Index, ComboBox1.Count output is 7 -1 7 You can on...
by stevedee
Thursday 30th January 2020 6:25pm
Forum: General
Topic: Working with CSV files
Replies: 6
Views: 535

Re: Working with CSV files

... you must have been looking over my shoulder watching my struggle with file handling... Talking of File handling, take a look at the File class in gb.Util. You can get the contents of a file like this:- Public myFile As File ... myFile = New File TextArea1.Text = myFile.Load(Application.Path & "...
by stevedee
Thursday 30th January 2020 1:41pm
Forum: General
Topic: Working with CSV files
Replies: 6
Views: 535

Working with CSV files

The CSV (Comma Seperated Values) file is my favourite format when working with data; its simple to understand and its been around forever. CSV files can be opened in any text editor or imported into a spreadsheet. Each value is seperated from the next via a comma, except the last value in a line. Mu...
by stevedee
Tuesday 28th January 2020 10:45am
Forum: General
Topic: A Dirty Guide to OOP #1
Replies: 16
Views: 1024

Re: A Dirty Guide to OOP #1

Cheers SteveS. Like the guide so far.... I'm not sure I have much more to add on the subject of OOP. I did a search yesterday for polymorphism & Gambas, but didn't find anything useful. Maybe we can get the views of forum members on whether they use OOP in their programs, or whether they even like i...