Search found 1114 matches
- Tuesday 20th June 2023 9:30am
- Forum: Beginners
- Topic: Cannot get it running on Debian 12
- Replies: 10
- Views: 2161
Re: Cannot get it running on Debian 12
First of all, I need to ask because this seems to be an issue sometimes with software: I installed it via the Discover app. I'm sorry I know nothing about the 'Discovery app'. I was interested in the fact that Debian now uses Wayland. It seems a bit new for the stable Distro that Debian normally po...
- Monday 19th June 2023 2:18pm
- Forum: Beginners
- Topic: Cannot get it running on Debian 12
- Replies: 10
- Views: 2161
Re: Cannot get it running on Debian 12
Welcome to the forum.
If you run 'gambas3' in terminal, do you get any errors? If so, can you post them.
If you run 'gambas3' in terminal, do you get any errors? If so, can you post them.
- Sunday 18th June 2023 1:31pm
- Forum: General
- Topic: Change the working directory not possible
- Replies: 3
- Views: 891
Re: Change the working directory not possible
I have project that needs to wander around a set of related directories and process the files therein. I would create a new folder as your 'working directory' e.g. Public sPath As String = User.Home &/ "MyNewFolder" Public Sub Form_Open() If Not Exist(sPath) Then Mkdir sPath End Then ...
Re: UnHtml$()
Hi, is there a reverse function to the Html$()-function? Thanks! Experimenting with the tricks Bruce posted, I came up with this: - Public Sub Form_Open() Dim sHtml As String = "Charlie was 'ere!" sHtml = Html(sHtml) Print sHtml sHtml = String.FromHTML(sHtml) Print sHtml End The result: -...
- Sunday 11th June 2023 11:00am
- Forum: General
- Topic: File pattern
- Replies: 10
- Views: 3838
Re: File pattern
thatbruce. I tried exactly the same 'solution'. vuott said it didn't work for him, and, unfortunately, it didn't work for me either. vuott. Your "*.*g" is a good workaround but is a bit hit-and-miss. I tried to use regexp, but I don't know the syntax well enough. I won't understand it if ...
- Saturday 10th June 2023 2:24pm
- Forum: General
- Topic: File pattern
- Replies: 10
- Views: 3838
File pattern
Can someone tell me how to get this syntax correct, as the example below does not work. I have tried various things, but so far I have failed!
sDir = Dir(sPath, "*.jpg", "*.jpeg", "*.png", gb.File)
- Monday 5th June 2023 2:17pm
- Forum: Beginners
- Topic: Rounding to two decimal places without Round
- Replies: 14
- Views: 3350
Re: Rounding to two decimal places without Round
What is misrepresented here is f(x) returns a value that can be interpreted as a variable on the left hand side of the assignment and therefor be a valid assignment. Think this way, if fNum was a Float[] then you would not expect fNum=Int(1.234) to work but fnum=[Int(1.234)] should. There are many ...
- Sunday 4th June 2023 1:39pm
- Forum: Beginners
- Topic: Rounding to two decimal places without Round
- Replies: 14
- Views: 3350
Re: Rounding to two decimal places without Round
On the other hand, Cogier you have managed with your last reflection to make my neurons a mess. But what question are you asking? Sorry, I was not trying to fry your brain! :D The purpose of Int is to create an Integer . So how can it return a Float ? The difference between Int() and CInt() is: Int...
- Saturday 3rd June 2023 11:12am
- Forum: Beginners
- Topic: Rounding to two decimal places without Round
- Replies: 14
- Views: 3350
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?
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?
- Thursday 1st June 2023 9:21am
- Forum: Beginners
- Topic: Rounding to two decimal places without Round
- Replies: 14
- Views: 3350
Re: Rounding to two decimal places without Round
My solution would be: -
Print Int(2000.5354 * 100) / 100