Search found 1564 matches

by BruceSteers
Wednesday 21st June 2023 8:48am
Forum: Beginners
Topic: UnHtml$()
Replies: 4
Views: 1290

Re: UnHtml$()

Thanks! FromHTML() is not documented under String-Functions in https://gambas.sourceforge.net/en/main.html# Indeed because it is not a native function but part of the component gb.util. I have just added a gb.util string link to the "See also" part of the "String functions" page...
by BruceSteers
Thursday 15th June 2023 6:43am
Forum: Beginners
Topic: UnHtml$()
Replies: 4
Views: 1290

Re: UnHtml$()

Hi, is there a reverse function to the Html$()-function? Thanks! Probably String.FromHTML() of gb.util component http://gambaswiki.org/wiki/comp/gb.util/string/fromhtml Maybe UnQuote() will do? http://gambaswiki.org/wiki/lang/unquote As all Html() does is "quote" a string so it's safe for...
by BruceSteers
Sunday 11th June 2023 12:32pm
Forum: General
Topic: File pattern
Replies: 10
Views: 3855

Re: File pattern

How about just this.... For Each s As String In Dir(User.Home, "*.{jpg,jpeg,png}", gb.file) Print s Next Or the slightly more complicated looking version Vuott suggested. For Each s As String In Dir(User.Home, "[^.]*.{jpg,jpeg,png}", gb.file) Print s Next Note: the [^.] prefix pa...
by BruceSteers
Sunday 11th June 2023 11:23am
Forum: General
Topic: Enhanced treeview sorting
Replies: 2
Views: 695

Re: Enhanced treeview sorting

I'm looking for some ideas here. To put it at its' simplest, the TreeView sort just sorts on the text of each node. What I'd like in this situation (of a very large tree) is to enable the user to sort the tree based on some attribute of the nodes. So the first idea is to add a buttonbox to the prop...
by BruceSteers
Tuesday 6th June 2023 1:58pm
Forum: General
Topic: Import Files advice
Replies: 8
Views: 978

Re: Import Files advice

Well after a little bit of googling I have sort of managed to import the libarys into Gambas But now when I run the program I get the following error POSPrinterControl113 posprinter = PoSPrinter.POSPrinterControl113 New RecipitPrinter at the NEW location I get "Not a Object in FMain.class"...
by BruceSteers
Monday 5th June 2023 10:16am
Forum: Project showcase
Topic: mpris media controller (WIP)
Replies: 11
Views: 11427

Re: mpris media controller (WIP)

This has been further developed (fixes n things) in my Desktop-ish program and then exported to the attached standalone tray program for you all :) now BG color can be changed to your liking. Added a couple of features where if the files being played are local then you can open the dir and Play Next...
by BruceSteers
Monday 5th June 2023 8:00am
Forum: General
Topic: Import Files advice
Replies: 8
Views: 978

Re: Import Files advice

System.setProperty() is not a gambas function

maybe you want Object.SetProperty() but probably not as it's not an object its a pointer to a library function.

Sorry i cannot help as i do not use external libraries at all.
by BruceSteers
Sunday 4th June 2023 6:36pm
Forum: General
Topic: Import Files advice
Replies: 8
Views: 978

Re: Import Files advice

Er, convert it into gambas code because it isn't.
by BruceSteers
Saturday 3rd June 2023 9:47am
Forum: Beginners
Topic: Rounding to two decimal places without Round
Replies: 14
Views: 3422

Re: Rounding to two decimal places without Round

This question is like Christmas. Full of forum stars :) Now only BruceSteers is missing and this is Christmas in full. Well thank you, gentlemen, I found it very interesting. Haha , I have my uses :) but I also know when to sit back and let those who know better have a say :) I'd have just used str...
by BruceSteers
Wednesday 31st May 2023 11:38pm
Forum: General
Topic: ncurses examples
Replies: 2
Views: 6551

Re: ncurses examples

There's also the gb.term.form component.

https://gitlab.com/gambas/gambas/-/tree ... .term.form

I've never used it but it looked interesting and kinda what you are speaking of with pseudo graphical terminal thing.