Search found 161 matches

by thatbruce
Tuesday 30th January 2024 6:01am
Forum: Project showcase
Topic: Blockski+ , like Klotski but with a board editor.
Replies: 42
Views: 6843

Re: Blockski+ , like Klotski but with a board editor.

The move counts in the winner popup are wrong. The winner popup is strange when run with "current desktop". Its titlebar needs to be clicked to get it to fully show. Works fine on qt5. Occasionally the blocks get stuck, frequently when the target clock is in the ghost wall, but also someti...
by thatbruce
Monday 29th January 2024 12:55am
Forum: Beginners
Topic: slqite3 issue
Replies: 2
Views: 906

Re: slqite3 issue

Two notes:
1) You CANNOT write to a database inside the executable(nor any other file inside the executable.) The database must exist outside the executable.
2) As Bruce says you must use a FULL path to the sqlite file. Read up up on how Gambas uses relative paths.
b
by thatbruce
Saturday 27th January 2024 12:14pm
Forum: General
Topic: Gambas executable entry value
Replies: 8
Views: 1327

Re: Gambas executable entry value

Shell, shell, shell! Or maybe C shells big shells along the see-saw.
(I think I may have to have a little lie down now)
;)
b
by thatbruce
Wednesday 17th January 2024 10:53am
Forum: Beginners
Topic: Where to place design documentation in project heirarchy?
Replies: 6
Views: 1718

Re: Where to place design documentation in project heirarchy?

Aw man! I've been using .hidden for centuries now for documentation and a lot of other junk as well. AFAIK, apart from the controls matter, all it means is that the content doesn't get included in the executable archive. Which is really handy if one uses, say, a UML tool that creates ginormous "...
by thatbruce
Friday 12th January 2024 9:03am
Forum: Beginners
Topic: TheUnexplained
Replies: 7
Views: 2049

Re: TheUnexplained

Just for improvements sake: Dim maxtries as Integer=100 Dim tries as Integer myip="" While Not myip If tries>maxtries then error.raise("No connection") ' or whatever is suitable break ' if you dont raise an error endif Inc tries Wait 0.25 ' I thought 1 second was a bit pessimisti...
by thatbruce
Tuesday 9th January 2024 10:30am
Forum: Beginners
Topic: How to check if two files are identical
Replies: 4
Views: 1490

Re: How to check if two files are identical

The quick answer is to shell out to the standard "diff" utility, using the "-s" option. This save you having to load the files. (More later, I'm a bit tired)
b
by thatbruce
Thursday 4th January 2024 9:58pm
Forum: General
Topic: UDP IP setup
Replies: 6
Views: 1704

Re: UDP IP setup

Just as a test, try chopping the data instead of using mid

Dim tmp as String
$TXDataRY = Left$($VidData, 2880)
tmp = Left$($VidData,-2880)
$TXDataBY=Left$(tmp,2880)

Print "-" & $TXDataBY & "+"

b
by thatbruce
Thursday 4th January 2024 9:46am
Forum: Beginners
Topic: Gambas3 Code Layout
Replies: 4
Views: 1570

Re: Gambas3 Code Layout

Have you got the line wrap option set off in the ide?
by thatbruce
Thursday 28th December 2023 8:48am
Forum: General
Topic: Access Denied when launching a Shell file
Replies: 6
Views: 1311

Re: Access Denied when launching a Shell file

What happens if you run that exact string in a terminal?
by thatbruce
Tuesday 19th December 2023 8:30am
Forum: General
Topic: Cool idea for object New initialization defaults
Replies: 1
Views: 11991

Re: Cool idea for object New initialization defaults

I think I like this. What happens if you give it a property that does not exist? hExt = New ExternalTool(["SaveAfter": True, "CopyToClipboard": True, "Mode": ExternalTool.Insert]) The way I have always done this type of thing is via a static "Create" method. i...