Search found 84 matches

by Doctor Watson
Sunday 14th March 2021 6:09am
Forum: General
Topic: DATA statements - possible in Gambas ?
Replies: 9
Views: 5882

Re: DATA statements - possible in Gambas ?

Where I said ‘shielded’ : I do mean that if data are stored within the programme file itself – or application, app, executable or whatever it’s called – tampering with them becomes a lot more unlikely. When they are kept in an external file, that file can intententionally or not be edited, overwritt...
by Doctor Watson
Saturday 13th March 2021 7:06am
Forum: General
Topic: DATA statements - possible in Gambas ?
Replies: 9
Views: 5882

Re: DATA statements - possible in Gambas ?

Hi Cougier That’s perfect for a small number of data, but I would need to store between 100 and 200 data. Wouldn’t be very practical, would it? As I gather, a DATA statement is not possible in Gambas. Other BASIC develloppers have dropped this as well or haven’t been including it considering it old ...
by Doctor Watson
Friday 12th March 2021 10:06am
Forum: General
Topic: DATA statements - possible in Gambas ?
Replies: 9
Views: 5882

DATA statements - possible in Gambas ?

Good morning / evening (whatever) Getting underway with CSV files made me think of DATA statements. In my project, I will be using some specific data that stay always the same. In some BASIC languages you can store those in the executable itself, as you probably know. If not, here’s an example in GW...
by Doctor Watson
Thursday 11th March 2021 8:37am
Forum: General
Topic: TableView edit : 'freeze' column(s) ?
Replies: 5
Views: 4221

Re: TableView edit : 'freeze' column(s) ?

Hi guys, 01McAc : That ‘freeze’ code works perfectly. As for the sorting routine, I had just found the code in the GridView documentation, and where it says that it can be applied to TableView as well. However, it’s well above my programming knowledge. So I’m very pleased with Cogier’s sollution. Th...
by Doctor Watson
Wednesday 10th March 2021 8:50am
Forum: General
Topic: TableView edit : 'freeze' column(s) ?
Replies: 5
Views: 4221

TableView edit : 'freeze' column(s) ?

In my project I need to enter data using a ‘simple’ spreadsheet. TableView could be just perfect for that if it’s possible to : 1) set one or two columns to ‘Read Only’ , so that it’s impossible to change the contents within. 2) sort the data, because I read in the help files : Control.:sort (gb.qt5...
by Doctor Watson
Thursday 4th March 2021 9:55am
Forum: General
Topic: Retrieve a Theme's name ?
Replies: 18
Views: 10624

Re: Retrieve a Theme's name ?

No, it doesn’t seem to be something straightforward, if even experienced gurus are left struggling with it . Anyway, this goes way beyond my current programming capabilities. I’m going to try to get my project running first, the embellishments can wait for the time being. Bruce & Steve, many tha...
by Doctor Watson
Wednesday 3rd March 2021 10:24am
Forum: General
Topic: Retrieve a Theme's name ?
Replies: 18
Views: 10624

Re: Retrieve a Theme's name ?

Hi Bruce,
I added System.Shell = System,.Find("bash")
and got an error Unexpected ‘,’
Removed the offending naughty ‘,’ and it runs fine.
BUT … result is still an empty string.
by Doctor Watson
Tuesday 2nd March 2021 1:54pm
Forum: General
Topic: Retrieve a Theme's name ?
Replies: 18
Views: 10624

Re: Retrieve a Theme's name ?

I see that that there’s a lot of activity regarding my question. Thanks for that, but this surpasses my humble Gambas programming knowledge. Steve, I tried the gsettings and they work fine but then, what can I do with it? Bruce, I tried your Public Sub, but it didn’t give a result. To make sure, I p...
by Doctor Watson
Monday 1st March 2021 1:16pm
Forum: General
Topic: Retrieve a Theme's name ?
Replies: 18
Views: 10624

Retrieve a Theme's name ?

Question : Is there a way for a program to figure out which Theme the ‘operating system’ – if I my call it so – is using? The origin of this post is my earlier post ‘Border problems’. So Steve and Bruce will already know what this is about. In brief : I am desperately trying to build a programme in ...
by Doctor Watson
Monday 1st March 2021 8:44am
Forum: General
Topic: Border problems
Replies: 17
Views: 9569

Re: Border problems

I just have installed Gnome Tweaks and it offers Appearance/Themes/Applications to choose any installed Theme. I'm going to play around with the default themes, search for some new appropriate ones and see what their effect is with Borders. There are already two that could qualify : HighContrast and...