Re: [Gambas-user] Default icons problem

2012-07-27 Thread Maria
Yes, it is. Thanks a lot. De: Benoît Minisini It should be fixed in revision #4995. Regards, -- Benoît Minisini -- Live Security Virtual Conference Exclusive live event will cover

[Gambas-user] help with datascrol control

2012-07-27 Thread tomasz brymora
Greetings! I decided to dev a project in Gambas and being a complete noob, got stuck on using the DataScroll control. I can connect to PostgreSql and save data. I'm trying to read it back in and populate DataScroll and that's where I'm lost. On the form I got DataSource1 and as it's children Data

[Gambas-user] JIT bug 7

2012-07-27 Thread Jussi Lahtinen
Before continuing my vacation again in countryside... Here is some JIT bug. See attachment. Gambas 3 rev 4995 @ Xubuntu 12.04 64bit Jussi JITbug7-0.0.1.tar.gz Description: GNU Zip compressed data -- Live Security Virtua

Re: [Gambas-user] Rounding to 2 decimals

2012-07-27 Thread rocko
Thanks.. On Fri, 2012-07-27 at 21:31 +0300, Jussi Lahtinen wrote: > If you use TextBox to display the result, then you need to convert to > string. > > resultBox.Text = Str(perAmnt) & "%" > > > These should be fairly easy to find from documentation. > > All topics: > http://www.gambasdoc.org/

Re: [Gambas-user] Rounding to 2 decimals

2012-07-27 Thread Jussi Lahtinen
If you use TextBox to display the result, then you need to convert to string. resultBox.Text = Str(perAmnt) & "%" These should be fairly easy to find from documentation. All topics: http://www.gambasdoc.org/help?v3 Keywords: http://www.gambasdoc.org/help/lang?v3 Jussi On 27 July 2012 21:

Re: [Gambas-user] Rounding to 2 decimals

2012-07-27 Thread rocko
AHA! That works, I forgot about using 'Float' If I were to use a textBox to display the result, how would I convert it?? Would it be something like: Val(perAmnt) On Fri, 2012-07-27 at 21:14 +0300, Jussi Lahtinen wrote: > Issue with Round is more complicated. It is floating point precision > pr

Re: [Gambas-user] Rounding to 2 decimals

2012-07-27 Thread Tobias Boege
On Fri, 27 Jul 2012, rocko wrote: > On Fri, 2012-07-27 at 19:49 +0200, Tobias Boege wrote: > > On Fri, 27 Jul 2012, rocko wrote: > > > On Fri, 2012-07-27 at 19:25 +0200, Tobias Boege wrote: > > > > On Fri, 27 Jul 2012, rocko wrote: > > > > > Using '.value instead of .text gives an error: > > > > >

Re: [Gambas-user] Rounding to 2 decimals

2012-07-27 Thread Jussi Lahtinen
Oh, and before using Val() check whether string you got can be converted to number. Dim prmAmnt As Integer Dim totAmnt As Integer Dim perAmnt As Float If IsNumber(prmBox.Text) = True And If IsNumber(totBox.Text) = True Then prmAmnt = Val(prmBox.Text) totAmnt = Val(totBox.Text) perAmnt = Round(

Re: [Gambas-user] Rounding to 2 decimals

2012-07-27 Thread rocko
Ok I just removed the & "%" at the end and the value box is working. But I still cannot get it to round to 2 decimal places. Round((prmAmnt / totAmnt * 100), -2) On Fri, 2012-07-27 at 21:11 +0300, Jussi Lahtinen wrote: > ValueBox doesn't take strings. > So, I suggest to use TextBoxes and do the

Re: [Gambas-user] Rounding to 2 decimals

2012-07-27 Thread Jussi Lahtinen
Issue with Round is more complicated. It is floating point precision problem, which arises from automatic conversion from float to single. You can fix it by changing; Dim perAmnt As Single to Dim perAmnt As Float Jussi On 27 July 2012 21:05, rocko wrote: > On Fri, 2012-07-27 at 19:49 +02

Re: [Gambas-user] Rounding to 2 decimals

2012-07-27 Thread Jussi Lahtinen
ValueBox doesn't take strings. So, I suggest to use TextBoxes and do the conversion properly with Val(). Jussi On 27 July 2012 21:05, rocko wrote: > On Fri, 2012-07-27 at 19:49 +0200, Tobias Boege wrote: > > On Fri, 27 Jul 2012, rocko wrote: > > > On Fri, 2012-07-27 at 19:25 +0200, Tobias Bo

Re: [Gambas-user] Rounding to 2 decimals

2012-07-27 Thread rocko
On Fri, 2012-07-27 at 19:49 +0200, Tobias Boege wrote: > On Fri, 27 Jul 2012, rocko wrote: > > On Fri, 2012-07-27 at 19:25 +0200, Tobias Boege wrote: > > > On Fri, 27 Jul 2012, rocko wrote: > > > > Using '.value instead of .text gives an error: > > > > "Unknown symbol "value" in class TextBox" > >

Re: [Gambas-user] Rounding to 2 decimals

2012-07-27 Thread Tobias Boege
On Fri, 27 Jul 2012, rocko wrote: > On Fri, 2012-07-27 at 19:25 +0200, Tobias Boege wrote: > > On Fri, 27 Jul 2012, rocko wrote: > > > Using '.value instead of .text gives an error: > > > "Unknown symbol "value" in class TextBox" > > > > > > On Fri, 2012-07-27 at 02:05 +0200, LeszekK wrote: > > >

Re: [Gambas-user] Rounding to 2 decimals

2012-07-27 Thread rocko
On Fri, 2012-07-27 at 02:05 +0200, LeszekK wrote: > 'Do not use textboxes for mathematical calculations > > Dim prmAmnt As Integer > Dim totAmnt As Integer > Dim perAmnt As Single > > prmAmnt = prmBox.value 'valuebox! not textbox > totAmnt = totBox.value 'valuebox! not textbox > perAmnt = Round(

Re: [Gambas-user] Rounding to 2 decimals

2012-07-27 Thread rocko
On Fri, 2012-07-27 at 19:25 +0200, Tobias Boege wrote: > On Fri, 27 Jul 2012, rocko wrote: > > Using '.value instead of .text gives an error: > > "Unknown symbol "value" in class TextBox" > > > > On Fri, 2012-07-27 at 02:05 +0200, LeszekK wrote: > > > 'Do not use textboxes for mathematical calcula

Re: [Gambas-user] Default icons problem

2012-07-27 Thread Fabien Bodard
Ok I'll take a look,this evening Le 27 juil. 2012 16:11, "Maria" a écrit : > When I copied the icon folder I got confuse with the name, but the name of > the icon set or its folder name is irrelevant (unless you use the > Stock.Theme property, but that's not the case). > > The background problem

Re: [Gambas-user] Rounding to 2 decimals

2012-07-27 Thread Tobias Boege
On Fri, 27 Jul 2012, rocko wrote: > Using '.value instead of .text gives an error: > "Unknown symbol "value" in class TextBox" > > On Fri, 2012-07-27 at 02:05 +0200, LeszekK wrote: > > 'Do not use textboxes for mathematical calculations > > > > Dim prmAmnt As Integer > > Dim totAmnt As Integer >

Re: [Gambas-user] Rounding to 2 decimals

2012-07-27 Thread rocko
Using '.value instead of .text gives an error: "Unknown symbol "value" in class TextBox" On Fri, 2012-07-27 at 02:05 +0200, LeszekK wrote: > 'Do not use textboxes for mathematical calculations > > Dim prmAmnt As Integer > Dim totAmnt As Integer > Dim perAmnt As Single > > prmAmnt = prmBox.value

Re: [Gambas-user] Default icons problem

2012-07-27 Thread Benoît Minisini
Le 27/07/2012 16:10, Maria a écrit : > When I copied the icon folder I got confuse with the name, but the name of > the icon set or its folder name is irrelevant (unless you use the Stock.Theme > property, but that's not the case). > > The background problem is not that, I'd like to know if you c

Re: [Gambas-user] Does Application.Daemon work ?

2012-07-27 Thread Benoît Minisini
Le 27/07/2012 16:46, Ru Vuott a écrit : > Hello, > > I would not be wrong, but it seems to me that the function > "Application.Daemon" does not work. > > Do you want control it ? Thanks. > > Regards > Vuott > What does not work? I use it daily 24h/24h on a dozen of servers... -- Benoît Minisini

[Gambas-user] R: Array of structs ?

2012-07-27 Thread Ru Vuott
Array-Variables of Struct type here (in Italian): http://www.gambas-it.org/wiki/index.php/Strutture:_dichiarazione_ed_uso#Variabili_array_di_tipo_.22Struttura.22 --- Ven 27/7/12, wally ha scritto: > Da: wally > Oggetto: [Gambas-user] Array of structs ? > A: Gambas-user@lists.sourceforge.

[Gambas-user] Does Application.Daemon work ?

2012-07-27 Thread Ru Vuott
Hello, I would not be wrong, but it seems to me that the function "Application.Daemon" does not work. Do you want control it ? Thanks. Regards Vuott -- Live Security Virtual Conference Exclusive live event will cover a

Re: [Gambas-user] Default icons problem

2012-07-27 Thread Maria
When I copied the icon folder I got confuse with the name, but the name of the icon set or its folder name is irrelevant (unless you use the Stock.Theme property, but that's not the case). The background problem is not that, I'd like to know if you can reproduce this anormal behaviour: Environ

[Gambas-user] Array of structs ?

2012-07-27 Thread wally
I would like to use array of structs in gambas3. Is this possibel at all ? e.g. Public Struct P_Type X As Float Y As Float End Struct Public Pi_ As New P_Type[] Pi_.Resize(6) Pi_[0].X = Val(txb_x0.Text) Pi_[1].X = Val(txb_x1.Text) .. a.s.o. if not, are there alternatives to perform

Re: [Gambas-user] Gridview title row height

2012-07-27 Thread Ricardo Díaz Martín
Yes, now tittle row resizes in the right size. Regards 2012/7/27 Benoît Minisini > Le 26/07/2012 21:55, Ricardo Díaz Martín a écrit : > > I tried on before to write the email... and doesn't work > > > > It should be fixed in revision #4994. > > Regards, > > -- > Benoît Minisini > > > --

Re: [Gambas-user] Default icons problem

2012-07-27 Thread Fabien Bodard
the icontheme is nuovext2 ? and not nouvext2 ! http://nuovext.pwsp.net/ 2012/7/27 Fabien Bodard > > > > 2012/7/26 Maria > >> Look at this: http://imgur.com/a/okdWZ >> >> First screenshot: with normal theme nouvext2 in /usr/share/icons >> The second one: with nouvext2 in ~/.icons >> >> Notic

Re: [Gambas-user] Default icons problem

2012-07-27 Thread Fabien Bodard
2012/7/26 Maria > Look at this: http://imgur.com/a/okdWZ > > First screenshot: with normal theme nouvext2 in /usr/share/icons > The second one: with nouvext2 in ~/.icons > > Notice system loads correctly nouvext2 icons in both situations (look at > panel icons at the top), but gambas and compilat

Re: [Gambas-user] Rounding to 2 decimals

2012-07-27 Thread Fabien Bodard
2012/7/27 Ricardo Díaz Martín > Yes, gambas convert them but I you can have some problems with "-", "." and > "," symbols if you are using formatted numbers > it's true > 2012/7/27 Fabien Bodard > > > Le 27 juil. 2012 08:33, "Ricardo Díaz Martín" < > oceanosoftlapa...@gmail.com > > > > > a écrit

Re: [Gambas-user] Rounding to 2 decimals

2012-07-27 Thread Ricardo Díaz Martín
Yes, gambas convert them but I you can have some problems with "-", "." and "," symbols if you are using formatted numbers 2012/7/27 Fabien Bodard > Le 27 juil. 2012 08:33, "Ricardo Díaz Martín" > > a écrit : > > > > Hi rocko > > > > As you can read this http://gambasdoc.org/help/lang/round you