Re: [Gambas-user] how to log to stdout/stderr

2017-07-13 Thread Fernando Cabral
2017-07-13 21:21 GMT-03:00 PICCORO McKAY Lenz : > the nohup trick not always work.. for that there's the gambas redirection > print.. that's why i ask previously how i detec if are runnig inside ide.. > if are inside ide. let normal print, if not, redirect... > > I am not sure I have understood wh

[Gambas-user] gui controls are only applied to components, cant able use as libraries

2017-07-13 Thread PICCORO McKAY Lenz
i made several components, and when i try to reuse as libraries (i generated the gambas and link/use in properties tab) can instanciate the object/class but cannot useit .. gambas said that "some componets are missing" for those class not are gui, gambas said "missing class" Lenz McKAY Gerardo (

Re: [Gambas-user] how to log to stdout/stderr

2017-07-13 Thread PICCORO McKAY Lenz
in part you have right fernando.. but that was dicuss several time previously.. i want to no made special commands to daemonize my app.. i want my app are daemon by selft.. now my app are a property daemon.. and every night at 00:00 restart all setting and starts a new day to regist people.. the

Re: [Gambas-user] how to log to stdout/stderr

2017-07-13 Thread Fernando Cabral
2017-07-13 17:11 GMT-03:00 Tobias Boege said: > As we discussed recently [1], stdout and stderr are redirected to /dev/null > when you daemonise, so there is not really any value in wanting to print > there if you want to make a daemon. I don't know if I have understood you correctly and comple

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

2017-07-13 Thread Gianluigi
Great Tobias, You are a good teacher and I am honored to have your attention. OK I understand, never more extravagant mathematics. Thank you very much for your explanations Regards Gianluigi P.S. You will not believe it but some tests with Floor and Ceil I did :-( 2017-07-13 20:00 GMT+02:00 Tob

Re: [Gambas-user] how to log to stdout/stderr

2017-07-13 Thread PICCORO McKAY Lenz
ok, thanks.. that's the mail ([1]) the problem of make right answer its the languaje barrier.. in my countrie its very spensive make a english course, and internet connection are very slowly and spensive too Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-07-13 16:11 GMT-04:00

Re: [Gambas-user] About gambas, the word

2017-07-13 Thread PICCORO McKAY Lenz
all of this conversation give so much hungry: a coup of WINE, with some friet GAMBAS! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-07-13 16:28 GMT-04:00 Fabien Bodard : > 2017-07-13 20:44 GMT+02:00 Jussi Lahtinen : > > Many open source projects have animal name or logo. So

Re: [Gambas-user] About gambas, the word

2017-07-13 Thread Fabien Bodard
2017-07-13 20:44 GMT+02:00 Jussi Lahtinen : > Many open source projects have animal name or logo. So I guess it's just > old tradition. In fact the tradition for geek programmers in the unix world was to find a recurssive acronym. It means the Name is an acronym that contain the name itself WINE

Re: [Gambas-user] ho to use code snipes

2017-07-13 Thread Tobias Boege
On Thu, 13 Jul 2017, PICCORO McKAY Lenz wrote: > i see for constructor "_new" the "_n" but how to use it? > http://gambaswiki.org/wiki/ide/idesnippets : Entering a code shortcut at the beginning of a line and pressing the TAB key will automatically expand the shortcut into a defined piece of

[Gambas-user] ho to use code snipes

2017-07-13 Thread PICCORO McKAY Lenz
i see for constructor "_new" the "_n" but how to use it? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! h

Re: [Gambas-user] how to log to stdout/stderr

2017-07-13 Thread Tobias Boege
On Thu, 13 Jul 2017, PICCORO McKAY Lenz wrote: > hello toby, when i set the gambas binary to backgroud to runs as daemon > ...and lauch other gambas process from that gambas ... > > then the stdout and stderr does not have that behaviour you said! > so then? > You're wrong, it does exactly what

Re: [Gambas-user] how to log to stdout/stderr

2017-07-13 Thread PICCORO McKAY Lenz
hello toby, when i set the gambas binary to backgroud to runs as daemon ...and lauch other gambas process from that gambas ... then the stdout and stderr does not have that behaviour you said! so then? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-07-13 14:11 GMT-04:00 Tobia

Re: [Gambas-user] About gambas, the word

2017-07-13 Thread Jussi Lahtinen
Many open source projects have animal name or logo. So I guess it's just old tradition. Jussi On Thu, Jul 13, 2017 at 11:18 AM, Jorge Carrión wrote: > It's a joke, I think. Searching for something that contains BAS, from > Basic. Why an animal I don't know. Benoit likes to eat prawns, I > sopp

Re: [Gambas-user] how to log to stdout/stderr

2017-07-13 Thread Tobias Boege
On Thu, 13 Jul 2017, PICCORO McKAY Lenz wrote: > how can i log to stdout and stderr my program actions/methods/things ? > > note that due vendor/client i cannot use gambas 3.5+ only 3.4... due its > the already installed.. > > some time ago benoit respond me that recent version of gambas implemen

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

2017-07-13 Thread Tobias Boege
On Thu, 13 Jul 2017, Gianluigi wrote: > I would not be misunderstood. > I had understood that Alex wanted a forced increase "Round". > > To recap: > > Dim n As Float = 26.66016 > Dim b As Byte > > Print Int(n * 100) / 100 ' Normal truncate, as already > mentioned by ot

[Gambas-user] how to log to stdout/stderr

2017-07-13 Thread PICCORO McKAY Lenz
how can i log to stdout and stderr my program actions/methods/things ? note that due vendor/client i cannot use gambas 3.5+ only 3.4... due its the already installed.. some time ago benoit respond me that recent version of gambas implements something similar already, but i cannot find the main in

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

2017-07-13 Thread Gianluigi
I would not be misunderstood. I had understood that Alex wanted a forced increase "Round". To recap: Dim n As Float = 26.66016 Dim b As Byte Print Int(n * 100) / 100 ' Normal truncate, as already mentioned by other Print Round(n, -2)' Normal round

Re: [Gambas-user] Gambas in a tablet. Is it possible?

2017-07-13 Thread PICCORO McKAY Lenz
2017-07-13 1:41 GMT-04:00 alexchernoff : > There is a software called NSBasic that can build Android apps and is very > it's another mess up, a guindows-only stupid software... the idea its complete develop in linux to deploy in the others/all platforms, i'm tyred of guindows

Re: [Gambas-user] About gambas, the word

2017-07-13 Thread PICCORO McKAY Lenz
2017-07-13 4:18 GMT-04:00 Jorge Carrión : > Benoit likes to eat prawns, I soppouse... > ka ka ka ka >.< 😅 as a post note: GAMBAS acron of that its not basic > > 😁😁😁 > > Best Regards > > 2017-07-13 8:37 GMT+02:00 Fernando Cabral : > > > *Warning: this is only a linguistic curiosity with no re

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

2017-07-13 Thread PICCORO McKAY Lenz
2017-07-13 1:46 GMT-04:00 bb : > I always round i.e. Print Round(26.66016,-2) --> the digits see -> .660 > which is 26.66 by the way, not 26.67! (I have no idea how you got that.) due 660 and -2 said the firts two digits, the round will take effect only in last digit.. due the last no

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

2017-07-13 Thread Charlie
Also consider: - Public Sub Main() Dim fNum As Float[] = [26.66016, 26.66516] 'Note 26.660.. and 26.665.. Dim fTemp As Float For Each fTemp In fNum fTemp *= 100 fTemp += 0.5 fTemp = Int(fTemp) fTemp /= 100 Print fTemp;; Next 'Output 26.66 26.67 End - Check out

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

2017-07-13 Thread Gianluigi
One thing that could be useful? Public Sub Main() Dim n As Float = 26.66016 Dim b As Byte b = Val(Mid(CStr(Frac(n)), 5, 1)) Print Round(n, -2) If b >= 5 Then Print Round(n, -2) Else Print Round(n + 0.01, -2) Endif End Regards Gianluigi 2017-07-13 7:39 GMT+02:00 a

Re: [Gambas-user] How to use drag-and-drop

2017-07-13 Thread Rolf-Werner Eilert
Am 11.07.2017 um 12:23 schrieb Charlie: Rolf-Werner Eilert-2 wrote The basic usage of the drag-and-drop functions isn't quite clear to me. I couldn't find much information in the wiki about it. Here is my code. I use t$ as a simple storage place and TextBox1 is only to see what the thing does.

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

2017-07-13 Thread Charlie
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 two digits AND/OR with rounding them? > > e.g. > 26.66016 becomes 26.66 shortened > 26.66016 becomes 26.67 rounded > > cheers! You s

Re: [Gambas-user] About gambas, the word

2017-07-13 Thread Charlie Reinl
Am Donnerstag, den 13.07.2017, 10:18 +0200 schrieb Jorge Carrión: > It's a joke, I think. Searching for something that contains BAS, from > Basic. Why an animal I don't know. Benoit likes to eat prawns, I soppouse... > > 😁😁😁 > > Best Regards > > 2017-07-13 8:37 GMT+02:00 Fernando Cabral : > > >

Re: [Gambas-user] About gambas, the word

2017-07-13 Thread Jorge Carrión
It's a joke, I think. Searching for something that contains BAS, from Basic. Why an animal I don't know. Benoit likes to eat prawns, I soppouse... 😁😁😁 Best Regards 2017-07-13 8:37 GMT+02:00 Fernando Cabral : > *Warning: this is only a linguistic curiosity with no relation to Gambas, > the langu