Search found 1106 matches

by cogier
Saturday 3rd June 2023 11:12am
Forum: Beginners
Topic: Rounding to two decimal places without Round
Replies: 14
Views: 2740

Re: Rounding to two decimal places without Round

I found this here: -

The difference between Int() and CInt() is:

Int() may return a Float value, CInt() is limited to 32 bit Integer.
Int() rounds to the next lower value. i.e. -4.6 to -5, while CInt rounds towards 0 i.e. -4.6 to -4



How does Int return a Float value?
by cogier
Thursday 1st June 2023 9:21am
Forum: Beginners
Topic: Rounding to two decimal places without Round
Replies: 14
Views: 2740

Re: Rounding to two decimal places without Round

My solution would be: -

Print Int(2000.5354 * 100) / 100
by cogier
Monday 22nd May 2023 3:55pm
Forum: The Gambas IDE
Topic: How to run the IDE with QT
Replies: 12
Views: 6800

Re: How to run the IDE with QT

Well no. If you go to the "About gambas" window you can see what component is used for the ide. The debug menu sets what toolkit to use when testing your project with the ide debugger. OK, but using this trick I can access the Group property, and it makes no difference if I then set it ba...
by cogier
Saturday 20th May 2023 2:54pm
Forum: The Gambas IDE
Topic: How to run the IDE with QT
Replies: 12
Views: 6800

Re: How to run the IDE with QT

gbWilly's command works when used as a Keyboard Shortcut.

Bruce's command works from the Terminal.

I also discovered that if you look at 'Debug' menu, you can see which component is used.

Image

Thanks again.
by cogier
Friday 19th May 2023 3:49pm
Forum: The Gambas IDE
Topic: How to run the IDE with QT
Replies: 12
Views: 6800

Re: How to run the IDE with QT

Thanks, I'll try that out later. A pint awaits right now......
by cogier
Friday 19th May 2023 3:14pm
Forum: The Gambas IDE
Topic: How to run the IDE with QT
Replies: 12
Views: 6800

How to run the IDE with QT

I have discovered that if I run the Gambas IDE with QT5 it solves the problem of not being able to enter text into the Group 'Drop Down List'. I have tried to sort this problem by changing themes and font sizes, with no joy. My question is what is the terminal command that will do this? I am running...
by cogier
Thursday 18th May 2023 12:31pm
Forum: Beginners
Topic: Read a .mbox format
Replies: 1
Views: 796

Re: Read a .mbox format

I had to Google to find what a MBOX was! I don't think Gambas has a way to deal with this directly. The file is in plain text, so should not be too difficult to extract what you need.
by cogier
Wednesday 17th May 2023 7:32am
Forum: Lounge
Topic: Lenovo Thinkbook issues installing Linux
Replies: 18
Views: 13007

Re: Lenovo Thinkbook issues installing Linux

Is there A BIOS update available?
by cogier
Saturday 13th May 2023 2:04pm
Forum: Lounge
Topic: Lenovo Thinkbook issues installing Linux
Replies: 18
Views: 13007

Re: Lenovo Thinkbook issues installing Linux

Etcher can create an ISO, and it is available for Linux, if that helps.
by cogier
Monday 8th May 2023 10:11am
Forum: General
Topic: A4 - Printer [Solved]
Replies: 2
Views: 724

Re: A4 - Printer

There is Printing help available here and there is an example program available on the Farm, and here