[Gambas-user] System.Language (gb)

2017-07-03 Thread bb
Static Property Language As String Returns or sets the current language setting. But which one? LANG? LC_ALL? LANGUAGE? ... My problem is that most of my ENV localisations are set to "en_AU.UTF-8", the UTF-8 bit is supposed to be ignored but it isn't somewhere and so the translation doesn't

Re: [Gambas-user] System.Language (gb)

2017-07-03 Thread bb
On 04/07/17 07:13, Tobias Boege wrote: On Tue, 04 Jul 2017, bb wrote: >Static Property Language As String > >Returns or sets the current language setting. > >But which one? LANG? LC_ALL? LANGUAGE? ... > According to source code it returns: 1. LC_ALL if that's non-em

Re: [Gambas-user] who to detect if are running inside IDE

2017-07-03 Thread bb
On 04/07/17 08:12, Jussi Lahtinen wrote: I don't understand why you need stop menu to your project. Why can't you just use the stop button from the IDE? Jussi Coz it stops at a defined place, not just next time the eventloop runs. b --

Re: [Gambas-user] Mystery with file.load and regexp

2017-07-04 Thread bb
On 05/07/17 11:58, Fernando Cabral wrote: I have found and worked around the problem. When you do the following: *Dim Expressions as string[] = Split(File.Load("/home/fernando/.config/libreoffice/4/user/basic/indesejaveis.txt"), "\n") * The last item pushed into *Expressions* is an empty string

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

2017-07-12 Thread bb
I always round i.e. Print Round(26.66016,-2) --> which is 26.66 by the way, not 26.67! (I have no idea how you got that.) b On 13/07/17 15:09, alexchernoff wrote: Peace to all, this might a bit silly but what is the best way to format float values like 26.66016 into having t