[Gambas-user] What should executable open with?

2009-09-14 Thread CelticBhoy
Really daft question, but on my Ubuntu system my compiled gambas app is set to open with wine for some reason. I just want to know what it should be set to, to enable it to run. -- View this message in context: http://www.nabble.com/What-should-executable-open-with--tp25432680p25432680.html Sent

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 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 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 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 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 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 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. ---

[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

Re: [Gambas-user] Problem opening project

2009-05-03 Thread CelticBhoy
Fixed by tinkering with the .settings file. -- View this message in context: http://www.nabble.com/Problem-opening-project-tp23356901p23356958.html Sent from the gambas-user mailing list archive at Nabble.com. -- Regis

[Gambas-user] Problem opening project

2009-05-03 Thread CelticBhoy
I moved the contents of my project folder to another location. At first I did not realise that there were hidden files in the folder also, and only coppied the files I could see. Then after copying over the hidden files I tried to open the project. It open with the form as expected, but the class

Re: [Gambas-user] Error on Jaunty

2009-04-21 Thread CelticBhoy
CelticBhoy wrote: > > I am currently using 2.8 from the Ubuntu repo's, the project files are all > uploaded above. > I tried to install a .deb of 2.12 but got a dependancy error for a lib > file - sorry cant remember the name. > > Just checked again, and t

Re: [Gambas-user] Error on Jaunty

2009-04-21 Thread CelticBhoy
I am currently using 2.8 from the Ubuntu repo's, the project files are all uploaded above. I tried to install a .deb of 2.12 but got a dependancy error for a lib file - sorry cant remember the name. -- View this message in context: http://www.nabble.com/Error-on-Jaunty-tp23132993p23160072.html

Re: [Gambas-user] Error on Jaunty

2009-04-21 Thread CelticBhoy
OK the menu is the problem. Is there a way around this or will I have to design my projects without menu's -- View this message in context: http://www.nabble.com/Error-on-Jaunty-tp23132993p23157818.html Sent from the gambas-user mailing list archive at Nabble.com. --

Re: [Gambas-user] Error on Jaunty

2009-04-20 Thread CelticBhoy
Thanx for the advice & your time looking at this, as I am using the version from the repo's how do I update my version ?? -- View this message in context: http://www.nabble.com/Error-on-Jaunty-tp23132993p23140592.html Sent from the gambas-user mailing list archive at Nabble.com. --

Re: [Gambas-user] Error on Jaunty

2009-04-20 Thread CelticBhoy
Thanx for the offer, I have attached the rest of my files, obviously you will need to change file location. http://www.nabble.com/file/p23139578/FMain.form FMain.form http://www.nabble.com/file/p23139578/stock.rec stock.rec http://www.nabble.com/file/p23139578/suppliers.rec suppliers.rec http:

Re: [Gambas-user] Error on Jaunty

2009-04-20 Thread CelticBhoy
Using 2.8, source code attached http://www.nabble.com/file/p23138207/FMain.class FMain.class -- View this message in context: http://www.nabble.com/Error-on-Jaunty-tp23132993p23138207.html Sent from the gambas-user mailing list archive at Nabble.com. --

[Gambas-user] Error on Jaunty

2009-04-20 Thread CelticBhoy
I am running gambas 2 on a testing version of Ubuntu 9.04, when I try to run a simple program I get this error :- Your program has stopped unexpectedlly by raising signal #11 What is this error? -- View this message in context: http://www.nabble.com/Error-on-Jaunty-tp23132993p23132993.html Sen

[Gambas-user] Printer not found

2009-04-06 Thread CelticBhoy
I have writen a small stock prog, and want to print various reports, but when I use the printer.begin function it does not see my printer. The printer works fine in any other app I try to print from. I am using Ubuntu with Gnome and have the gb, gb.db, gb.db.form, gb.form, gb.qt, and gb.qt.ext mod

[Gambas-user] Is there an Lprint equivalent

2009-04-02 Thread CelticBhoy
The last time I coded i used the old QuickBasic under windows 3.1. What I want to know is if there is an equivalent to the Lprint command to send a line to the printer? If not how do I print to the printer ??? I had a look at the documentation but couldn't find anything. -- View this message in

Re: [Gambas-user] We should offer online Gambas courses!

2009-03-31 Thread CelticBhoy
I have just had a look at your initial site jbskaggs, and I thought that it looked quite good. You should however put in place a request section where people can request either future tutorials, or documented code snipets. And also a way to submit code/lessons for the administrators to check & inc

Re: [Gambas-user] We should offer online Gambas courses!

2009-03-30 Thread CelticBhoy
As someone who is new to Gambas and has not coded anything for roughly 20 years this seems like a fantastic idea to me. I would be especially interested in the suggestion of placing user code online for others to examine. I do however think that it would have to be tightly controlled over content

Re: [Gambas-user] Catch NULL character

2009-03-28 Thread CelticBhoy
Thanx again for the help. I will have a look at your advice and try and implement it in my code. This is my first crack at programming since way back in the QuickBasic days, so I appreciate the help. -- View this message in context: http://www.nabble.com/Catch-NULL-character-tp22751957p22760874.

Re: [Gambas-user] Catch NULL character

2009-03-28 Thread CelticBhoy
This is the code where the problem comes up :- PUBLIC SUB Seperate(sComponent AS String, iRec AS Integer) DIM sElement AS String[13] DIM iStart AS Integer DIM iFinish AS Integer DIM iLen AS Integer DIM iLoop AS Integer DIM iSlen AS Integer iLen = Len(sComponent) IF iLen > 1

[Gambas-user] Catch NULL character

2009-03-27 Thread CelticBhoy
What is wrong with this line :- IF sElement[iLoop] = NULL THEN sElement[iLoop] = "0" I want to catch a null character and change it to "0". -- View this message in context: http://www.nabble.com/Catch-NULL-character-tp22751957p22751957.html Sent from the gambas-user mailing list archive at Nab

Re: [Gambas-user] Unable to change valuebox contents after selecting record from combobox

2009-03-27 Thread CelticBhoy
Thanx for the reply's but I managed to sort it, it was a problem with the combobox.index returning a negative number, and using the wrong event ( I had used change, worked with click ). After finding the problems it was simple to sort. Thanx again for quick reply's. -- View this message in cont

Re: [Gambas-user] Unable to change valuebox contents after selecting record from combobox

2009-03-26 Thread CelticBhoy
This is the code I have used to assign the values to the valuebox's :- PUBLIC SUB Amend_Change() DIM iRef AS Integer iRef = ItemName.Index PackSize = PSize[iRef] SalesDiv.Value = SDiv[iRef] StockOnHand.Value = SOnHand[iRef] ItemCost1.Value = ICost1[iRef] ItemCost2.Value = ICost2[iR

[Gambas-user] Unable to change valuebox contents after selecting record from combobox

2009-03-26 Thread CelticBhoy
I am new to Gambas & am having a small problem with a simple stock control program. When th program starts a file is read and each record is loaded and broken down and the element values are assigned to separate arrays, a combobox is loaded with the names of the stock items. On my form when runnin