[Gambas-user] Parallel Port Programming in Gambas

2009-12-16 Thread Me
Hi all, I am new to Gambas 2.16 and also Ubuntu 9.04. I trying to write a Gambas program to control parallel port's input/output in Ubuntu. For example, Switch parallel port pin 2 to on or off. From How To Use Parallel Port http://gambasdoc.org/help/howto/parport Solution 1: opening

Re: [Gambas-user] About financial program in Gambas

2009-12-16 Thread Jean-Yves F. Barbier
Ricardo Díaz Martín a écrit : Hi to all, I'm use gambas to write ERP applications. At the first, I got the same problem but I decided to use long integer to save currency values. First rigth two digits are always showed to users as decimal values. I'm rewrited all my apps from windows to

Re: [Gambas-user] Showing ps files

2009-12-16 Thread Fabien Bodard
use an external application like ghostscript and include it with embedder control 2009/12/16 Rolf-Werner Eilert eilert-sprac...@t-online.de: Good morning everyone, just a small question: Is there a control which could show the contents of postscript files? Maybe even scaled, so I could

Re: [Gambas-user] About financial program in Gambas

2009-12-16 Thread Ricardo Díaz Martín
Jean, You can use numbers of decimal as you want. I you want 4 you only need to divide by 1000. The only you need to decide on before insert data. If you need to add more decimals in future you only have to modify a parameter in your app from 2 to 4 (functions that show from database/write to

Re: [Gambas-user] SDL component documentation

2009-12-16 Thread Fabien Bodard
2009/12/16 kevinfishburne kevinfishbu...@eightvirtues.com: Fabien Bodard-4 wrote: gb.sdl is incomplete ... in fact Laurent have begin to redraw all the gb.sdl lib by using OpenGl... but ... still incomplete ... i think the lack of users on this lib mess his enthusiasm Hi Fabien, I agree

Re: [Gambas-user] signal SIGSEGV, Segmentation fault when using database example with ODDBC to a MSSQL Database

2009-12-16 Thread Benoît Minisini
Problem #11 when using ODBC to connect to a remote database running on MS SQL Server 2000. I can connect to the database and run queries using tsql from a terminal and isql from a root terminal and I can connect using odbc in Gambas2 if the ide is started from a root terminal but not

[Gambas-user] Cannot save a gif image

2009-12-16 Thread Les Hardy
Can anyone tell me how to save a gif image. I can save other images, but not gifs gambas 2.18 on ubuntu 9.04 Regards Les Hardy -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of

[Gambas-user] problems with core functions

2009-12-16 Thread Norarg
hi I am struggling with some nasty little things.. when I select a text or a part of a text in a textbox, and I want to copy this or paste from clipboard, the usual way is to use ctrl-c, ctrl-v. well, every software I know has a button too, making this possible. I tried to use the

Re: [Gambas-user] Cannot save a gif image

2009-12-16 Thread Fabien Bodard
have you libgif installed ? 2009/12/16 Jussi Lahtinen jussi.lahti...@gmail.com: Save gif from where? Please show your code you are using to save other image formats. Jussi On Tue, Dec 15, 2009 at 23:57, Les Hardy l...@webmayo.com wrote: Can anyone tell me how to save a gif image. I can

[Gambas-user] Custom error class

2009-12-16 Thread Jesus Guardon
Hi all Perhaps this is an stupid question, but I'm confused at this point: I'm trying to implement a custom error message window with information about an error raised within a CATCH clause, using the Error class from Gambas. Here is the code I'm not able to get it working: _The error form

Re: [Gambas-user] Cannot save a gif image

2009-12-16 Thread Les Hardy
Yes, I have libgif-4.1.6-6. I tried reinstalling all image libraries that I could find. Still no good. Regards Les Hardy Fabien Bodard wrote: have you libgif installed ? 2009/12/16 Jussi Lahtinen jussi.lahti...@gmail.com: Save gif from where? Please show your code you are using to

Re: [Gambas-user] problems with core functions

2009-12-16 Thread Norarg
hi, thanks, but how do I get this Text I want to copy, it is selected, but somehow I have to make a string of it, before sending it to the clipboard. Somewhere I have seen SelStart, SelLength with Gambas, but just can not find that part any more - it seemed so clear, I did not give it any

[Gambas-user] Weird Overflow error (GB_DIR)

2009-12-16 Thread Jesus Guardon
Hi all I am experimenting with the GB_DIR environment variable, and I've made a deb package with my program to install it in /opt. The current dir structure is as follows: je...@jesus:~$ tree /opt /opt `-- dfhlog |-- dfhlog.gambas `-- gambas2 |-- bin | |-- gbr2 - gbx2

Re: [Gambas-user] Cannot save a gif image

2009-12-16 Thread Les Hardy
Thanks for responding Jussi, The image is a result of an image.load previously in the code. It may have been loaded as a gif, jpg, png or bmp. 'this works ok imgfile = user.home / tmpfile.jpg imageout.Save(imgfile) '-- 'this works ok imgfile = user.home / tmpfile.png

Re: [Gambas-user] Cannot save a gif image

2009-12-16 Thread Benoît Minisini
Thanks for responding Jussi, The image is a result of an image.load previously in the code. It may have been loaded as a gif, jpg, png or bmp. 'this works ok imgfile = user.home / tmpfile.jpg imageout.Save(imgfile) '-- 'this works ok imgfile = user.home /

Re: [Gambas-user] Weird Overflow error (GB_DIR)

2009-12-16 Thread Benoît Minisini
Hi all I am experimenting with the GB_DIR environment variable, and I've made a deb package with my program to install it in /opt. The current dir structure is as follows: je...@jesus:~$ tree /opt /opt `-- dfhlog |-- dfhlog.gambas `-- gambas2 |-- bin |

Re: [Gambas-user] Custom error class

2009-12-16 Thread Benoît Minisini
Hi all Perhaps this is an stupid question, but I'm confused at this point: I'm trying to implement a custom error message window with information about an error raised within a CATCH clause, using the Error class from Gambas. Here is the code I'm not able to get it working: _The error

Re: [Gambas-user] Weird Overflow error (GB_DIR)

2009-12-16 Thread Jesus Guardon
Benoît Minisini escribió: Hi all I am experimenting with the GB_DIR environment variable, and I've made a deb package with my program to install it in /opt. The current dir structure is as follows: je...@jesus:~$ tree /opt /opt `-- dfhlog |-- dfhlog.gambas `-- gambas2

Re: [Gambas-user] Custom error class

2009-12-16 Thread Jesus Guardon
Benoît Minisini escribió: Hi all Perhaps this is an stupid question, but I'm confused at this point: I'm trying to implement a custom error message window with information about an error raised within a CATCH clause, using the Error class from Gambas. Here is the code I'm not able to get it

Re: [Gambas-user] About financial program in Gambas

2009-12-16 Thread nando
For your info only... I always use INT or LONG for accounting and money. So, (here in Canada), $42.87 is 4287 I keep the tax (8%) as a float, therefore 8.25% is 8.25 This is ok for tax because rounding is needed. For example: 4287 * 8.25 = 35367.75 / 100 = 353.6775 add .5 for 5/4 round up down =

Re: [Gambas-user] Cannot save a gif image

2009-12-16 Thread Les Hardy
Yes, You have it. Just checked. Looks like QImageIO was compiled without gif support on ubuntu 9.04 , and I am using gb.qt. My Thanks to all that responded. Regards Les Hardy Benoît Minisini wrote: In Gambas 2, the image save function is managed by the GUI component: which one do you

[Gambas-user] How to force a normal number output?

2009-12-16 Thread M. Cs.
I need to have a normal decimal output without E+degree notation. How to force Gambas to use 153879 instead of 1.53879E+5? -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's

Re: [Gambas-user] About financial program in Gambas

2009-12-16 Thread Steven James Drinnan
Sorry - AS for mySQL it also has round() and you use the same as the gambas function. Steven On Wed, 2009-12-16 at 16:13 -0500, nando wrote: For your info only... I always use INT or LONG for accounting and money. So, (here in Canada), $42.87 is 4287 I keep the tax (8%) as a float,

Re: [Gambas-user] About financial program in Gambas

2009-12-16 Thread Steven James Drinnan
Just to add my two cents worth, This problem has been around for eons and it does not only apply to Gambas. When I was programming in Access and VB I had the same problem even using the currency type. I just use the Round function Value = Round ( Number [ , Digits ] ) And I use this return