Re: [Gambas-user] Weather app in Software Farm

2017-07-16 Thread Tony Morehen
I just uploaded a version that uses the gb.gui component instead of gb.qt5. It also has a workaround that may fix your error. That error arises when your system does not have a systray enabled. See:

Re: [Gambas-user] reading files

2017-07-16 Thread T Lee Davidson
On 07/16/2017 06:57 AM, Shane wrote: given this example PRIVATE SUB BinaryRead(FilePath AS String) DIM binaryFile AS File DIM i AS Integer DIM b AS Byte DIM s AS Short DIM s1 AS String DIM s2 AS String ' Read binary file binaryFile = OPEN FilePath FOR READ READ

Re: [Gambas-user] Gambas Playground

2017-07-16 Thread Gianluigi
Hi Adrien, Thank you very much for the detailed answer. Now I know how to behave the next time I'm wrong :) Regards Gianluigi 2017-07-16 16:03 GMT+02:00 Adrien Prokopowicz : > Le Sun, 16 Jul 2017 15:10:55 +0200, Gianluigi a > écrit: > >

Re: [Gambas-user] Gambas Playground

2017-07-16 Thread Adrien Prokopowicz
Le Sun, 16 Jul 2017 15:10:55 +0200, Gianluigi a écrit: Thanks Adrien, I was able to mistake my first insertion (I left useless code) :(. Can I fix it? [0] Regards Gianluigi [0] http://gambas.8142.n7.nabble.com/Best-ways-to-format-float-values-td59733.html Hi

Re: [Gambas-user] Gambas Playground

2017-07-16 Thread Gianluigi
Thanks Adrien, I was able to mistake my first insertion (I left useless code) :(. Can I fix it? [0] Regards Gianluigi [0] http://gambas.8142.n7.nabble.com/Best-ways-to-format-float-values-td59733.html 2017-07-16 11:11 GMT+02:00 Karl Reinl : > Am Sonntag, den 16.07.2017,

Re: [Gambas-user] Best ways to format float values

2017-07-16 Thread Gianluigi
The street indicated by Tobias should be the safest, right? I try to attach Adrien's link instead of the code: https://gambas-playground.proko.eu/?gist=f5dbde82ee8f5f1f5799184108fd57c1 Regards Gianluigi 2017-07-16 11:47 GMT+02:00 Gianluigi : > Hi Nando, > > good

Re: [Gambas-user] My quest for efficiency

2017-07-16 Thread Fernando Cabral
Thank you, Caveat [emptor?]. The code you proposed worked very, very well. In fact, I timed it against two versions of the C program and the result was quite good. In C, reading from the standard input and writing to the standard output took a trifle beyond half a second (0.6?? real time).

[Gambas-user] reading files

2017-07-16 Thread Shane
given this example PRIVATE SUB BinaryRead(FilePath AS String) DIM binaryFile AS File DIM i AS Integer DIM b AS Byte DIM s AS Short DIM s1 AS String DIM s2 AS String ' Read binary file binaryFile = OPEN FilePath FOR READ READ #binaryFile, i READ #binaryFile, b READ

Re: [Gambas-user] Best ways to format float values

2017-07-16 Thread Gianluigi
Hi Nando, good explanation, suitable for a guys with an elementary school preparation like me. Thank you very much Gianluigi 2017-07-16 10:07 GMT+02:00 : > Rounding depends on what rounding you want. > Most people think of 5/4 rounding. > I prefer to round manually

Re: [Gambas-user] Gambas Playground

2017-07-16 Thread Karl Reinl
Am Sonntag, den 16.07.2017, 01:37 +0200 schrieb Adrien Prokopowicz: > Hello Everyone ! > > These past few days I had fun putting together an online playground for > Gambas ! > You can find it here : https://gambas-playground.proko.eu/ :) > > The playground is a little place to write and run

Re: [Gambas-user] Best ways to format float values

2017-07-16 Thread nando_f
Rounding depends on what rounding you want. Most people think of 5/4 rounding. I prefer to round manually 5/4... 5 up, 4 down. Dim n as Float = 26.6601 n = n * 100. 'n = 2666.01 ' 2 decimal points rounding n = n + 0.5 'n = 2666.51 ' 5/4 rounding* n = CLong(n) 'n =