Re: [Gambas-user] Looking for a little help with an app.

2009-05-12 Thread CelticBhoy
OK had to change it about to this :- PUBLIC SUB CSales_Change() TotalSales.Value = 0 IF BarSales.Text <> NULL THEN TotalSales.Value = BarSales.Value / SDiv[CheckItem.Index + 1] IF OSSales.Text <> NULL THEN TotalSales.Value = TotalSales.Value + OSSales.Value IF OSMultiSales.Text <> NULL TH

Re: [Gambas-user] Looking for a little help with an app.

2009-05-12 Thread CelticBhoy
Trying this :- IF NOT NULL(BarSales.Value) THEN TotalSales.Value = BarSales.Value / SDiv[CheckItem.Index + 1] Getting this :- Unknown identifier :NULL at line 557 in FMain.class -- View this message in context: http://www.nabble.com/Looking-for-a-little-help-with-an-app.-tp23480295p23

Re: [Gambas-user] Looking for a little help with an app.

2009-05-12 Thread Rolf-Werner Eilert
CelticBhoy schrieb: > I have just one problem with this method of updating the totals, if I delete > the value contained in one of the valuebox items, I get this error :- > > Type mismatch, wanted number got null instead. As far as I know: a Gambas feature :-) If you put an empty string into a V

Re: [Gambas-user] Looking for a little help with an app.

2009-05-12 Thread CelticBhoy
I have just one problem with this method of updating the totals, if I delete the value contained in one of the valuebox items, I get this error :- Type mismatch, wanted number got null instead. -- View this message in context: http://www.nabble.com/Looking-for-a-little-help-with-an-app.-tp23480

Re: [Gambas-user] Looking for a little help with an app.

2009-05-11 Thread Stefano Palmeri
Il lunedì 11 maggio 2009 17:45:18 CelticBhoy ha scritto: > Thats strange, I already had that value set to true, but it still lets me > edit the field, and stores the value I have typed. Yes. Probably a bug. I send some other mails about it. Please, read them. Sourceforge is a little slow sometim

Re: [Gambas-user] Looking for a little help with an app.

2009-05-11 Thread CelticBhoy
Thats strange, I already had that value set to true, but it still lets me edit the field, and stores the value I have typed. -- View this message in context: http://www.nabble.com/Looking-for-a-little-help-with-an-app.-tp23480295p23485936.html Sent from the gambas-user mailing list archive at Na

Re: [Gambas-user] Looking for a little help with an app.

2009-05-11 Thread Stefano Palmeri
Il lunedì 11 maggio 2009 17:09:35 CelticBhoy ha scritto: > Sorry I mean the valuebox containing the total. I dont want the user to be > able to change the value apart from entering in valuebox 1, 2, & 3 in your > example. The user should not be able to change valuebox4 directly. It seems there a b

Re: [Gambas-user] Looking for a little help with an app.

2009-05-11 Thread Stefano Palmeri
Il lunedì 11 maggio 2009 17:09:35 CelticBhoy ha scritto: > Sorry I mean the valuebox containing the total. I dont want the user to be > able to change the value apart from entering in valuebox 1, 2, & 3 in your > example. The user should not be able to change valuebox4 directly. Errata corrige:

Re: [Gambas-user] Looking for a little help with an app.

2009-05-11 Thread Stefano Palmeri
Il lunedì 11 maggio 2009 17:09:35 CelticBhoy ha scritto: > Sorry I mean the valuebox containing the total. I dont want the user to be > able to change the value apart from entering in valuebox 1, 2, & 3 in your > example. The user should not be able to change valuebox4 directly. Yes, it's already

Re: [Gambas-user] Looking for a little help with an app.

2009-05-11 Thread CelticBhoy
Sorry I mean the valuebox containing the total. I dont want the user to be able to change the value apart from entering in valuebox 1, 2, & 3 in your example. The user should not be able to change valuebox4 directly. -- View this message in context: http://www.nabble.com/Looking-for-a-little-hel

Re: [Gambas-user] Looking for a little help with an app.

2009-05-11 Thread Stefano Palmeri
Il lunedì 11 maggio 2009 16:37:53 CelticBhoy ha scritto: > OK that works for changing the value, now how do I stop use entry on this > field? My english is poor. Which field you're talking about? Taking my example, what you want to do? I mean, you insert a value, then another and get the total.

Re: [Gambas-user] Looking for a little help with an app.

2009-05-11 Thread CelticBhoy
OK that works for changing the value, now how do I stop use entry on this field? -- View this message in context: http://www.nabble.com/Looking-for-a-little-help-with-an-app.-tp23480295p23484641.html Sent from the gambas-user mailing list archive at Nabble.com.

Re: [Gambas-user] Looking for a little help with an app.

2009-05-11 Thread CelticBhoy
Thanx that has opened it. -- View this message in context: http://www.nabble.com/Looking-for-a-little-help-with-an-app.-tp23480295p23484163.html Sent from the gambas-user mailing list archive at Nabble.com. -- The NEW

Re: [Gambas-user] Looking for a little help with an app.

2009-05-11 Thread charlesg
Hi I also have this problem quite often :( unzip the file first with: gunzip sales-0.0.1.tar.gz and then extract it with a dble-click rgds -- View this message in context: http://www.nabble.com/Looking-for-a-little-help-with-an-app.-tp23480295p23484102.html Sent from the gambas-user mailing l

Re: [Gambas-user] Looking for a little help with an app.

2009-05-11 Thread CelticBhoy
Still wont open! ps bar is in Hamilton, Scotland. -- View this message in context: http://www.nabble.com/Looking-for-a-little-help-with-an-app.-tp23480295p23483601.html Sent from the gambas-user mailing list archive at Nabble.com. --

Re: [Gambas-user] Looking for a little help with an app.

2009-05-11 Thread Stefano Palmeri
Il lunedì 11 maggio 2009 14:36:14 CelticBhoy ha scritto: > Could you re-send you example, the archive wont open. Strange. It's the second time that I send an example on the list and it will not open. Here on my desktop I've no problem. Anyway I re-send. To open it, try: tar xvzf sales-0.0.1.tar.

Re: [Gambas-user] Looking for a little help with an app.

2009-05-11 Thread CelticBhoy
Could you re-send you example, the archive wont open. -- View this message in context: http://www.nabble.com/Looking-for-a-little-help-with-an-app.-tp23480295p23482489.html Sent from the gambas-user mailing list archive at Nabble.com. ---

Re: [Gambas-user] Looking for a little help with an app.

2009-05-11 Thread Stefano Palmeri
Il lunedì 11 maggio 2009 11:51:58 CelticBhoy ha scritto: > I have written a small app for controlling the stock in the bar I own, but > I would like some advice on the best way to overcome a brick wall I have > hit. The attached screenshot shows the form I want to use to perform a > stock check. I

[Gambas-user] Looking for a little help with an app.

2009-05-11 Thread CelticBhoy
I have written a small app for controlling the stock in the bar I own, but I would like some advice on the best way to overcome a brick wall I have hit. The attached screenshot shows the form I want to use to perform a stock check. I want the 'total' fields to update when an amount is entered in a