Search found 233 matches

by cogier
Sunday 25th November 2018 5:04pm
Forum: Component
Topic: Gambas --> Beaglebone Black
Replies: 7
Views: 1111

Re: Gambas --> Beaglebone Black

I had forgotten about the attached Gambas program I wrote in 2016. It can control the Pi pins. It only requires that 'gpio' is installed on the Pi which I understand is a default installation. There is a module you can add to your program that will give you control. There are some pictures of the pr...
by cogier
Saturday 24th November 2018 4:44pm
Forum: Web
Topic: How to connect to web database
Replies: 4
Views: 422

Re: How to connect to web database

Hi Bill,

I have not mastered DB but there is an example in the Gambas Farm called 'DataBaseExample' that might help.
by cogier
Tuesday 30th October 2018 4:12pm
Forum: General
Topic: gridview header height
Replies: 3
Views: 440

Re: gridview header height

The only way I can find to set the header height is to set the font size. http://cogier.com/gambas/Gridview%20header%20height.jpg Try the following code: - Public Sub Form_Open() Dim GridView1 As GridView Dim sText As String[] = ["Hello", "world!", "Charlie", "was", "here!"] Dim siCount, siLoop As S...
by cogier
Monday 01st October 2018 3:46pm
Forum: General
Topic: No Spaces on JSON.Decode
Replies: 5
Views: 610

Re: No Spaces on JSON.Decode

Hi Wackout and welcome to the forum.

Have a look at the attached code.
Image
by cogier
Thursday 27th September 2018 1:29pm
Forum: General
Topic: "Jump is too far" error in a complex Select-Case
Replies: 6
Views: 660

Re: "Jump is too far" error in a complex Select-Case

I have written a piece of code, attached, with 1000 'Case' options (I got Gambas to write most of it!) and it does not crash. So I don't think that any 'limit' has been exceeded. Will you not let us see your code?
test.tar.gz
(397.58 KiB) Downloaded 71 times
by cogier
Wednesday 26th September 2018 3:51pm
Forum: General
Topic: "Jump is too far" error in a complex Select-Case
Replies: 6
Views: 660

Re: "Jump is too far" error in a complex Select-Case

Hi Godzilla and welcome to the forum. You have found an interesting problem. Can you let us see the code or put something together so we can see the effect.

One thing you could try is changing the Component gb.gui to gb.gui.qt and see if that makes any difference.
by cogier
Tuesday 25th September 2018 2:42pm
Forum: General
Topic: Did you know?
Replies: 29
Views: 4833

Re: Did you know?

Here's one I didn't know:- Dim siRand1, siRand2, siRand3, siRand4 As Short = Rand(0, 9) This generates random numbers for each variable. Try this: - Public Sub Form_Open() Dim siCount As Short For siCount = 1 To 10 Print Generate() Next End Public Sub Generate() As String Dim siRand1, siRand2, siRan...
by cogier
Tuesday 25th September 2018 1:43pm
Forum: General
Topic: lpr pdf not working
Replies: 2
Views: 379

Re: lpr pdf not working

Check that you have set the Default Printer.
Image


The man file says "lpr submits files for printing. Files named on the command line are sent to the named printer or the default destination if no destination is specified."
by cogier
Monday 10th September 2018 4:13pm
Forum: Lounge
Topic: Gambas 3.11 is out
Replies: 13
Views: 2000

Re: Gambas 3.11 is out

Hi reason and welcome to the forum. I use Mint 19 (19.1 is not out yet!) and have no trouble with the command as used in my post of Monday 27th August 2018 above. What did you use?
by cogier
Friday 31st August 2018 10:31pm
Forum: General
Topic: icons
Replies: 5
Views: 811

Re: icons

What I would like is to be able create a '.deb' or 'RPM' in Gambas and it install it on any Distro. I have tried changing '.deb' files to install a ppa that would solve the problem on 'apt-get' systems, it's all very messy! I know nothing about 'Snaps' but this looks like a way to solve this problem...