Re: [Gambas-user] One line printing to a /dev/lp0 printer from local network

2010-03-16 Thread Doriano Blengino
Vassilis K ha scritto: > Some months ago Doriano suggested the code for the printing of 1 line on > a parallel printer which is the following: > > PUBLIC SUB bEktiposi_Click() > DIM hPrinter AS File > hPrinter = OPEN "/dev/lp0" FOR OUTPUT > hPrinter.EndOfLine = gb.Windows >

Re: [Gambas-user] Cancel LostFocus Event

2010-03-16 Thread Fabien Bodard
last represent the object who send the event 2010/3/16 Ricardo Díaz Martín : > Thanks Fabien. I thinked it was very simple but I didn't know Last object. > > > 2010/3/16 Fabien Bodard > >> public sub Control_Lostfocus() >> Last.setfocus >> stop event >> >> >> end >> >> 2010/3/16 Ricardo Díaz Mart

Re: [Gambas-user] Cancel LostFocus Event

2010-03-16 Thread Ricardo Díaz Martín
Thanks Fabien. I thinked it was very simple but I didn't know Last object. 2010/3/16 Fabien Bodard > public sub Control_Lostfocus() > Last.setfocus > stop event > > > end > > 2010/3/16 Ricardo Díaz Martín : > > Hi, > > > > It's possible in gambas2 to cancel a LostFocus event in a > textbox/text

Re: [Gambas-user] sqlite3 float value errors

2010-03-16 Thread Bill-Lancaster
Fabien - thank you. I have found that I can't correct the float type fields so integer is the thing! Thanks Bill -- View this message in context: http://old.nabble.com/sqlite3-float-value-errors-tp27915161p27923775.html Sent from the gambas-user mailing list archive at Nabble.com. ---

Re: [Gambas-user] Cancel LostFocus Event

2010-03-16 Thread Fabien Bodard
public sub Control_Lostfocus() Last.setfocus stop event end 2010/3/16 Ricardo Díaz Martín : > Hi, > > It's possible in gambas2 to cancel a LostFocus event in a textbox/textarea > control and return focus to the control? > > I need to make a validation over a field and will be easy if it is possi

Re: [Gambas-user] sqlite3 float value errors

2010-03-16 Thread Fabien Bodard
more of the accounting program store the currency in integer... as float manipulation is not perfect and cause many error 2010/3/16 Bill-Lancaster : > > Thanks for the ideas re storing money values as integer. > > For the time being I'll just clean up my float type money fields. > > Bill Lancaster

[Gambas-user] Cancel LostFocus Event

2010-03-16 Thread Ricardo Díaz Martín
Hi, It's possible in gambas2 to cancel a LostFocus event in a textbox/textarea control and return focus to the control? I need to make a validation over a field and will be easy if it is possible at now. Is not so important. Its only for my information. Regards, Ricardo Díaz ---

[Gambas-user] One line printing to a /dev/lp0 printer from local network

2010-03-16 Thread Vassilis K
Some months ago Doriano suggested the code for the printing of 1 line on a parallel printer which is the following: PUBLIC SUB bEktiposi_Click() DIM hPrinter AS File hPrinter = OPEN "/dev/lp0" FOR OUTPUT hPrinter.EndOfLine = gb.Windows PRINT #hPrinter, "test a line:

Re: [Gambas-user] Using a printer documentation

2010-03-16 Thread Charlie Reinl
Am Dienstag, den 16.03.2010, 06:14 -0400 schrieb Keith Clark: > On Sat, 2010-03-13 at 00:19 +0100, Benoît Minisini wrote: > > > Could someone forward me a few links about how to use a printer from > > > within Gambas? I need to know how to "Print" to a system default > > > printer. > > > > > > Th

Re: [Gambas-user] sqlite3 float value errors

2010-03-16 Thread Bill-Lancaster
Thanks for the ideas re storing money values as integer. For the time being I'll just clean up my float type money fields. Bill Lancaster -- View this message in context: http://old.nabble.com/sqlite3-float-value-errors-tp27915161p27916854.html Sent from the gambas-user mailing list archive at

Re: [Gambas-user] sqlite3 float value errors

2010-03-16 Thread Doriano Blengino
Jorge Carrión ha scritto: >I use integer for money fields without decimals. I store cents... in display >just field / 100. Hope it's valid for you > >2010/3/16 Bill-Lancaster > > > >>Yes - that IS much simpler but I have found that some of my SQL fields are >>not exact money values (like 10.23

Re: [Gambas-user] Using a printer documentation

2010-03-16 Thread Keith Clark
On Sat, 2010-03-13 at 00:19 +0100, Benoît Minisini wrote: > > Could someone forward me a few links about how to use a printer from > > within Gambas? I need to know how to "Print" to a system default > > printer. > > > > Thanks > > > > Keith > > > > In Gambas 2 or Gambas 3 ? > Any luck with

Re: [Gambas-user] sqlite3 float value errors

2010-03-16 Thread Jorge Carrión
I use integer for money fields without decimals. I store cents... in display just field / 100. Hope it's valid for you 2010/3/16 Bill-Lancaster > > Yes - that IS much simpler but I have found that some of my SQL fields are > not exact money values (like 10.23 say) but have tiny extra decimal val

Re: [Gambas-user] sqlite3 float value errors

2010-03-16 Thread Bill-Lancaster
Yes - that IS much simpler but I have found that some of my SQL fields are not exact money values (like 10.23 say) but have tiny extra decimal values. These display as normal in a gridview, tableview or whatever. By converting SQL field to float called fTempVal then fTempVal=fTempVal * 100. f

Re: [Gambas-user] sqlite3 float value errors

2010-03-16 Thread Jorge Carrión
why don't use if hResult!Dr <> hResultInvoice!GrossValue then... ? 2010/3/16 Bill-Lancaster > > Sorry, I'm using Gambas 2.13 running in Ubuntu 9.1 > -- > View this message in context: > http://old.nabble.com/sqlite3-float-value-errors-tp27915161p27915184.html > Sent from the gambas-user mailing

Re: [Gambas-user] sqlite3 float value errors

2010-03-16 Thread Bill-Lancaster
Sorry, I'm using Gambas 2.13 running in Ubuntu 9.1 -- View this message in context: http://old.nabble.com/sqlite3-float-value-errors-tp27915161p27915184.html Sent from the gambas-user mailing list archive at Nabble.com. --

[Gambas-user] sqlite3 float value errors

2010-03-16 Thread Bill-Lancaster
When comparing two separate database float values :- if hResult!Dr - hResultInvoice!GrossValue <> 0 then . Although both values are the same (as far as I can see), the above test gives a result (of zero) I've tried converting the fields to a float type variable but get the same result. Any