Search found 168 matches

by thatbruce
Tuesday 21st November 2023 10:37am
Forum: Beginners
Topic: Debugging: Stop program if variable = value ?
Replies: 9
Views: 20046

Re: Debugging: Stop program if variable = value ?

Dont hold your breath. It's been there for some years now.
But it would be nice. :roll:
by thatbruce
Monday 13th November 2023 5:28am
Forum: Beginners
Topic: Where to find examples? (Plus intro)
Replies: 6
Views: 5574

Re: Where to find examples? (Plus intro)

And when you read the wiki help on the language, read every word . (This is the greatest advice I can give any new user.) The wiki is succinct on purpose and very accurate (generally). When I first started using gambas over 12 years ago I printed out a large sign to put on the wall above my screen s...
by thatbruce
Monday 6th November 2023 12:07am
Forum: Component Showcase
Topic: Application control with DBus
Replies: 4
Views: 5593

Re: Application control with DBus

I think that is a much better approach. I look at dbus more as a "publisher/subscriber" and to do what you are making I use a facade style of class that has the complete responsibility for dbus interaction with an underlying business class. In some cases I use more than one facade for a cl...
by thatbruce
Wednesday 1st November 2023 8:55am
Forum: General
Topic: find a control
Replies: 11
Views: 11695

Re: find a control

Ah, yes. Obviously Last wont work, as Last is the button.
But, if you know the name of the control, e.g. "A2" then doesn't Me.A2 work?
or maybe Me.Controls["A2"]
I'm just poking about here.
b
by thatbruce
Wednesday 1st November 2023 2:48am
Forum: General
Topic: find a control
Replies: 11
Views: 11695

Re: find a control

Hard to tell without the context in which this code is executed, but maybe
  Dim hCtl as Object
  hCtl = Last
  DoThings
by thatbruce
Monday 30th October 2023 1:06am
Forum: General
Topic: Advise for a standalone database
Replies: 4
Views: 10186

Re: Advise for a standalone database

Note: sqlite is a single connection database, i.e. only one process can access the database in a read/write mode at a time.
by thatbruce
Sunday 29th October 2023 10:32am
Forum: Beginners
Topic: Best method for making a small modification to a gambas builtin class file
Replies: 6
Views: 4878

Re: Best method for making a small modification to a gambas builtin class file

ON this line?
With Super.$hView.Data

I doubt that "$hView" is a public attribute of the ListBox. Seek another attribute that provides what yoe need.
by thatbruce
Saturday 28th October 2023 6:49am
Forum: Beginners
Topic: Best method for making a small modification to a gambas builtin class file
Replies: 6
Views: 4878

Re: Best method for making a small modification to a gambas builtin class file

Somewhere in the help is the description of how to override classes in your application. Basically, just create a class in your project with the same name as the one you want to "extend" and add the relevant stuff. I frequently use it to add additional properties to a native class. There a...
by thatbruce
Wednesday 25th October 2023 11:51pm
Forum: General
Topic: can't access mysql
Replies: 3
Views: 8108

Re: can't access mysql

a) Is mysql configured to allow access from local connections?
b) Is your connection set up for that local access?
by thatbruce
Monday 23rd October 2023 8:34am
Forum: Beginners
Topic: Unable to change font
Replies: 6
Views: 4783

Re: Unable to change font

(I was just about to say that.)