Search found 190 matches

by cogier
Monday 01st October 2018 3:46pm
Forum: General
Topic: No Spaces on JSON.Decode
Replies: 3
Views: 72

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: 5
Views: 94

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 9 times
by cogier
Wednesday 26th September 2018 3:51pm
Forum: General
Topic: "Jump is too far" error in a complex Select-Case
Replies: 5
Views: 94

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: 3027

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: 50

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: 784

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: 291

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...
by cogier
Friday 31st August 2018 1:53pm
Forum: General
Topic: icons
Replies: 5
Views: 291

Re: icons

I feel like I am asking too many questions here but that is how we learn. Keep asking, that's what this forum is for! :D If anybody does knows the answer to question 1/. I would also like to know how to do this. Question 2/. Put your icon in your program's folder. Menu Project>Properties... Then cl...
by cogier
Thursday 30th August 2018 4:22pm
Forum: General
Topic: need help with updates for my program
Replies: 9
Views: 307

Re: need help with updates for my program

..your sudo program was missing the semicolon. I thought 'That's interesting' so I installed Fedora 28 and Gambas. I installed 'Sudo' and had all sorts of problems as my name was not in the 'sudoers' file and I was going to be reported! :( Anyway once I had sorted that I had no problem as all, I di...
by cogier
Wednesday 29th August 2018 4:22pm
Forum: General
Topic: need help with updates for my program
Replies: 9
Views: 307

Re: need help with updates for my program

Why does you program need to be in /bin? If it needs to go there you could use my 'Sudo' program on the Farm but this will require the user to enter the password.

Can you post the program here so we can see how it might be done?