Search found 128 matches

by Quincunxian
Saturday 31st July 2021 9:55pm
Forum: General
Topic: Exec & Shell
Replies: 5
Views: 71

Re: Exec & Shell

Thanks guys. @ Bruce - The Gambas Quote function has failed on every SQL statement I've used it on so far, so my confidence is somewhat lacking. I'll have another look to cover all bases, but I'm not confident. @Cogier. I'm using LibreOffice but have always used the soffice application for command l...
by Quincunxian
Saturday 31st July 2021 4:41am
Forum: General
Topic: Exec & Shell
Replies: 5
Views: 71

Exec & Shell

Greetings all. I'm trying to run an Open office command line instruction using Exec or Shell. It's not working, but if I run exactly the same command from the terminal, it works as required. The process uses 'soffice' to convert a writer document (.odt) file to a txt file. Terminal command: soffice ...
by Quincunxian
Tuesday 27th July 2021 9:46pm
Forum: General
Topic: SQL Advice
Replies: 1
Views: 37

Re: SQL Advice

Hi Andy, Is there any reason why this needs to be a TinyInt? From what I can understand on the SqLite web site, an Integer and a TinyInt storage space on disk is a byte more. Unless you are transacting M's of records, then it should not make that much of a difference. If transaction time is critical...
by Quincunxian
Monday 26th July 2021 1:50am
Forum: General
Topic: TextEditor Selected text font.
Replies: 1
Views: 47

TextEditor Selected text font.

Is there a way to set the selected text to bold or italic ? As far as I can see, you can only set the font to the whole document. What I would like to do is select a single phrase in a sentence and set it to italic only. From what I understand, the Gambas code editor is made from this component but ...
by Quincunxian
Friday 16th July 2021 10:15pm
Forum: General
Topic: Gambas Project Folders & Files
Replies: 4
Views: 146

Re: Gambas Project Folders & Files

Yeah, it does make a difference.
I've spent some time looking for a error only to find out I'd capitalised something in a file/folder name.
That's one of the main reason I prefer setting up dotted references. - Do it once, do it right.
by Quincunxian
Friday 16th July 2021 2:00am
Forum: General
Topic: Gambas Project Folders & Files
Replies: 4
Views: 146

Re: Gambas Project Folders & Files

Thanks Bruce. .Public sounds like the place to be root for all the folders I want to create. That makes it easier for my folder creation routine as well. I have a class that I instigate as 'Folder' from the main module. I assign various paths based on need so I can get dotted reference to the folder...
by Quincunxian
Thursday 15th July 2021 11:50pm
Forum: General
Topic: Gambas Project Folders & Files
Replies: 4
Views: 146

Gambas Project Folders & Files

I want to create a set of folders to store various types of data in my Gambas project area. Is there a 'best practice' location to create these folders or is it just the project root? This question is more around creating installation packages and where application data should go. Anybody able to fi...
by Quincunxian
Thursday 15th July 2021 5:03am
Forum: General
Topic: Launch and External Application
Replies: 4
Views: 140

Re: Launch and External Application

Hi sarpomira, You may be able to get xdg-open to work for this. xdg-open will find the correct application to open the file appended to the command. I use the subroutine below in a module to globally open things like text, html, {office documents} ect. If you have the appropriate applications instal...
by Quincunxian
Sunday 04th July 2021 10:06pm
Forum: General
Topic: [Sloved] Change Listbox list size
Replies: 10
Views: 372

Re: Change Listbox list size

You can also use : String.PadRight(sItem#1, 30, " ") & sItem#2" Returns a new string that left-aligns the characters in the original string by padding them on the right with a specified string pattern, for a specified total length. String is the string to pad. Length is the final length in UTF-8 cha...
by Quincunxian
Sunday 13th June 2021 10:32pm
Forum: Web
Topic: How to show image in WebImage on Gambas3
Replies: 7
Views: 1077

Re: How to show image in WebImage on Gambas3

I've been playing with this over the the last few weeks. Writing the path so: <img source='file:///[path to image].image.png'> stopped working. I think that this may be a security thing but it's hard to be sure. The solution I found that works is placing the images to be displayed in a folder struct...