Re: [Gambas-user] Ubuntu 14.04 update and Gambas executables

2014-04-30 Thread Keith Clark
> I got bit by the same thing when 12.04 came along. My original install of > Gambas apparently came from a different source. When i did this, I got > Gambas updated and my old executables started to work again. > Bill > > Keith Clark wrote, On 04/30/2014 17:03

[Gambas-user] Ubuntu 14.04 update and Gambas executables

2014-04-30 Thread Keith Clark
After a recent update to Ubuntu 14.04 on a couple of my computers, I can no longer execute my GAMBAS programs. No errors are given, they are just not executable anymore. Ubuntu does not seem to know what to do with them. They are not project files, but executables. This happened on two diff

Re: [Gambas-user] read/data commands

2013-06-27 Thread Keith Clark
Add([1, 2, 3, 4, 5]) >data.Add([6, 7, 8, 9, 10, 11]) > >For ii = 0 To data.Max > For jj = 0 To data[ii].Max >v[ii, jj] = data[ii][jj] > Next >Next > > Or maybe you want to read the data from file? > > Jussi > > > > > > On Fri, Jun 2

Re: [Gambas-user] read/data commands

2013-06-27 Thread Keith Clark
t > Next > > > Jussi > > > > > > > > > On Thu, Jun 27, 2013 at 10:55 PM, Keith Clark > wrote: > >> On 13-06-27 05:34 AM, Tobias Boege wrote: >>> On Wed, 26 Jun 2013, Keith Clark wrote: >>>> Does Gambas support read

Re: [Gambas-user] read/data commands

2013-06-27 Thread Keith Clark
On 13-06-27 05:34 AM, Tobias Boege wrote: > On Wed, 26 Jun 2013, Keith Clark wrote: >> Does Gambas support read/data commands like the following for loading a >> simple array with fixed values? >> >> for t=0 to 4 >> for x = 0 to 4 >> read v(t,

[Gambas-user] read/data commands

2013-06-26 Thread Keith Clark
Does Gambas support read/data commands like the following for loading a simple array with fixed values? for t=0 to 4 for x = 0 to 4 read v(t,x) next x next t data 1,2,3,4,5,1,2,3,4,5,1,2,3,4,5.. Maybe I'm just not finding it? -

[Gambas-user] Bad Row Index

2012-10-25 Thread Keith Clark
I am getting a bad row index in the following code. iProductRows = 1 fProducts = Open "products.dat" For Input While Not Eof(fProducts) gvProducts.Rows.Count = iProductRows Line Input #fProducts, sName Line Input #fProducts, iLargePrice Line Input #fProducts,

[Gambas-user] GTK errors

2012-10-25 Thread Keith Clark
I'm getting the following errors when trying to open a new form with a GridView on it. It seems to start whenever I try to set the number of rows. Ubuntu 12.04 ** (SubShopPOS:13153): CRITICAL **: os_bar_hide: assertion `OS_IS_BAR (bar)' failed (SubShopPOS:13153): Gtk-CRITICAL **: IA__gtk_widg

Re: [Gambas-user] Tab Strip

2012-10-25 Thread Keith Clark
On 12-10-25 03:21 PM, Keith Clark wrote: > I'm using a TabStrip for the first time and not understanding it 100% yet. > > I've created one with 5 tabs on it. I noticed that if I shrink the > control, there is another 'red outlined' frame behind it. In fact, >

[Gambas-user] Tab Strip

2012-10-25 Thread Keith Clark
I'm using a TabStrip for the first time and not understanding it 100% yet. I've created one with 5 tabs on it. I noticed that if I shrink the control, there is another 'red outlined' frame behind it. In fact, there are 3 more. If I shrink the first red frame, it will eventually start to hide

Re: [Gambas-user] Modify a control in another form

2012-09-22 Thread Keith Clark
On 12-09-22 06:23 PM, richard wrote: > On 23/09/12 08:03, Keith Clark wrote: >> How do I modify settings of a control on another form? Let's say that I >> want to be able to control the number of rows and columns of a grid >> view, gvSampleGrid, on form, fGame

[Gambas-user] Modify a control in another form

2012-09-22 Thread Keith Clark
How do I modify settings of a control on another form? Let's say that I want to be able to control the number of rows and columns of a grid view, gvSampleGrid, on form, fGameGrid from form, fGameSetup. Would it not be fGameGrid.gvSampleGrid.rows.count=10? I am working with the book A beginner'

Re: [Gambas-user] MySQL last_insert_id value

2012-01-20 Thread Keith Clark
On 12-01-20 05:14 PM, tobias wrote: > hi, > >> How would I get the MySQL last_insert_id() value into an integer >> variable inside gambas? >> >> I tried with >> >> CurrentID=db.exec("select last_insert_id() as last") >> >> but I get a type mismatch error. Expecting integer, got result. >> >> Thank

[Gambas-user] MySQL last_insert_id value

2012-01-20 Thread Keith Clark
How would I get the MySQL last_insert_id() value into an integer variable inside gambas? I tried with CurrentID=db.exec("select last_insert_id() as last") but I get a type mismatch error. Expecting integer, got result. Thanks, Keith -

[Gambas-user] Fill list box with mysql query

2012-01-20 Thread Keith Clark
How would I go about filling a listbox with a result from a mysql query? I know how to connect, write the query and get the result back in say $Result. The $Result would contain only one field with multiple rows. Thanks, Keith

[Gambas-user] New Game Creation

2011-12-03 Thread Keith Clark
I used to love Wall Street Raider for DOS/Windows and would like to create a newer, updated version for Linux. I think Gambas would make the perfect platform for doing so. If anyone is interested in participating, let me know my personal email and we'll get things started! Keith ---

Re: [Gambas-user] CGI programming example

2011-12-03 Thread Keith Clark
C++. Gambas is just another > language that with it's Basic Syntax should make it easier to write cgi > apps. > > Randy > > > > On Sat, Dec 3, 2011 at 3:50 PM, John Spikowskiwrote: > >> On Sat, 2011-12-03 at 18:09 -0500, Keith Clark wrote: >>> Has anyone wri

[Gambas-user] CGI programming example

2011-12-03 Thread Keith Clark
Has anyone written an example/tutorial of CGI programming with Gambas? Any links for me to read? Thanks, Keith -- All the data continuously generated in your IT infrastructure contains a definitive record of customer

[Gambas-user] Install Gambas 3

2011-11-11 Thread Keith Clark
I'm going to install Gambas 3 on my Ubuntu 11.10 computer and was wondering if I should remove the already installed Gambas 2.2 first? Thanks, Keith -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.s

[Gambas-user] mysql connection

2011-05-20 Thread Keith Clark
I seem to have forgotten how to connect to a mysql database server. I can reference the document: http://gambasdoc.org/help/howto/database but I keep getting connection errors. maybe I don't have the address correct? What format does it take www.xxx.com? -

[Gambas-user] Gambas 3 not out yet?

2011-04-28 Thread Keith Clark
I've just installed Ubuntu 11.04 and Gambas 3 is still not included in this popular distro? Maybe I'm not updating correctly or something. Keith -- WhatsUp Gold - Download Free Network Management Software The most intu

Re: [Gambas-user] MySQL query problems with apostropies

2010-04-07 Thread Keith Clark
On Wed, 2010-04-07 at 21:55 +0200, Fabien Bodard wrote: > 2010/4/7 Keith Clark : > > On Wed, 2010-04-07 at 14:40 -0500, nando wrote: > >> Replace will work for quote and backslash > >> For double quote: > >> > >> doublequote$ is chr$(34) &g

Re: [Gambas-user] MySQL query problems with apostropies

2010-04-07 Thread Keith Clark
On Wed, 2010-04-07 at 14:40 -0500, nando wrote: > Replace will work for quote and backslash > For double quote: > > doublequote$ is chr$(34) > Replace$(mystring, chr$(34), "\" & chr$(34) > > But, Benoit had an email of the nice solution. > -Fernando > > Ok, I've tried this: DescriptionTe

Re: [Gambas-user] MySQL query problems with apostropies

2010-04-07 Thread Keith Clark
> did you understand how subst() function work ijn gambas ?? > > mystring = subst("this is my &1 &2", "black", "dog") > > print mystring give : > > this my black dog > > &1 and &2 are replaced by subst param > > for the sql queries it work at the same ... but with an automatic escaping. > so t

Re: [Gambas-user] MySQL query problems with apostropies

2010-04-07 Thread Keith Clark
On Wed, 2010-04-07 at 14:40 -0500, nando wrote: > Replace will work for quote and backslash > For double quote: > > doublequote$ is chr$(34) > Replace$(mystring, chr$(34), "\" & chr$(34) > > But, Benoit had an email of the nice solution. > -Fernando > I don't think this works. This is what I ge

Re: [Gambas-user] MySQL query problems with apostropies

2010-04-07 Thread Keith Clark
On Wed, 2010-04-07 at 14:40 -0500, nando wrote: > Replace will work for quote and backslash > For double quote: > > doublequote$ is chr$(34) > Replace$(mystring, chr$(34), "\" & chr$(34) > > But, Benoit had an email of the nice solution. > -Fernando I did not understand that solution either.

Re: [Gambas-user] MySQL query problems with apostropies

2010-04-07 Thread Keith Clark
On Tue, 2010-04-06 at 16:27 -0500, nando wrote: > Strings that contain these three characters: quote, double quote and backslash > need to be escaped. > You escape them by having a backslash immediately before it. > Example: > Patty O'Lantern would be... > Patty O\'Lantern > > One way is to mak

[Gambas-user] TableView Header Names

2010-04-07 Thread Keith Clark
How do I change the text that is displayed in the TableView Headers? Thanks (still learning!), Keith -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactive

[Gambas-user] MySQL query problems with apostropies

2010-04-06 Thread Keith Clark
I have the following code: $Query = "" QueryArray[0] = "insert into products_description" QueryArray[1] = "(products_id,language_id,products_name,products_description,products_format)" QueryArray[2] = "values (" & NewProductID & ",1,'" & TitleTextBox.Text & "','" & DescriptionTextArea.Text & "',"

[Gambas-user] gb.net.curl

2010-03-31 Thread Keith Clark
I have a project that I'm working on, and at home I included the required gb.net.curl by adding it in Project>Properties>Components. This is on a machine running Ubuntu 10.04 Beta. I then created an executable, along with a complete copy of the entire directory and tried it here at work on a machi

Re: [Gambas-user] Using a printer documentation

2010-03-17 Thread Keith Clark
On Tue, 2010-03-16 at 16:37 +0100, Charlie Reinl wrote: > 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 > > > &g

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] Using a printer documentation

2010-03-12 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 ? > Gambas 2.19 K

[Gambas-user] Using a printer documentation

2010-03-12 Thread Keith Clark
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 -- Download Intel® Parallel Studio Eval Try the new software

Re: [Gambas-user] TableView.text conversion

2010-03-12 Thread Keith Clark
: > Keith Clark wrote: > > I have input a value into a TableView cell, and now I want to read it. > > The problem is that I want to read it as a text string. The 'number' is > > actually an ISBN code. It can sometimes be a string, as it can contain > > an 'X&

[Gambas-user] TableView.text conversion

2010-03-12 Thread Keith Clark
I have input a value into a TableView cell, and now I want to read it. The problem is that I want to read it as a text string. The 'number' is actually an ISBN code. It can sometimes be a string, as it can contain an 'X' or a 10 digit number, but starting with a 0. For example, 0123456789, 12345

[Gambas-user] Currency and addition/subtraction

2010-03-11 Thread Keith Clark
I have a TableView object and have imported some data into it that is formatted as currency. How can I know take that and add it to a Float variable? Keith -- Download Intel® Parallel Studio Eval Try the new software to

Re: [Gambas-user] Interactive table

2010-03-10 Thread Keith Clark
On Wed, 2010-03-10 at 23:11 +0100, Alessandro Rinaldi wrote: > >From http://gambasdoc.org/help/comp/gb.form/tableview > - > TableView (gb.form) > This control is an editable GridView. > Use the Edit method to start editing a cell. Beware that this method > must be called during the Click event.

[Gambas-user] Interactive table

2010-03-10 Thread Keith Clark
I want to create a table where a user can input data into cells, and depending on the data, calculate and display values in other cells. Which would I use, GridView or TableView? Keith -- Download Intel® Parallel Studi

Re: [Gambas-user] Strange form problem

2010-03-04 Thread Keith Clark
On Thu, 2010-03-04 at 22:38 +1100, richard terry wrote: > On Thursday 04 March 2010 22:34:52 Keith Clark wrote: > > I have designed a form and all looked great. Suddenly the form no > > longer looks the same in the design mode compared to the run mode. The > > objects are

[Gambas-user] Strange form problem

2010-03-04 Thread Keith Clark
I have designed a form and all looked great. Suddenly the form no longer looks the same in the design mode compared to the run mode. The objects are no longer in the same places as shown when I'm in programming mode. Not sure what went wrong and if this is maybe a bug? Keith

Re: [Gambas-user] MySQL and general data issues

2010-03-02 Thread Keith Clark
On Tue, 2010-03-02 at 22:44 +0100, M. Cs. wrote: > I'm using sqlite, and I think the querry should look like: > DIM answer AS Result > DIM querry As String > ... > > querry="SELECT.;" > answer=YourConnection.Exec(querry) > FOR EACH answer > > do what you want..

Re: [Gambas-user] MySQL and general data issues

2010-03-02 Thread Keith Clark
On Mon, 2010-03-01 at 23:36 +0100, Charlie Reinl wrote: > Am Montag, den 01.03.2010, 16:22 -0500 schrieb Keith Clark: > > I am trying to access some data using the documentation "A Beginner's > > Guide to Gambas" and I've gotten this far: > > > >

Re: [Gambas-user] MySQL and general data issues

2010-03-01 Thread Keith Clark
On Mon, 2010-03-01 at 23:36 +0100, Charlie Reinl wrote: > Am Montag, den 01.03.2010, 16:22 -0500 schrieb Keith Clark: > > I am trying to access some data using the documentation "A Beginner's > > Guide to Gambas" and I've gotten this far: > > > >

[Gambas-user] MySQL and general data issues

2010-03-01 Thread Keith Clark
I am trying to access some data using the documentation "A Beginner's Guide to Gambas" and I've gotten this far: PUBLIC SUB SearchButton_Click() DIM $Query AS String DIM $Result AS Result DIM iIndex AS Integer DIM hField AS ResultField DatabaseConnection.Connect() $Query = "sele

Re: [Gambas-user] Picturebox

2010-02-27 Thread Keith Clark
On Sat, 2010-02-27 at 18:23 +0100, Fabien Bodard wrote: > 2010/2/27 Keith Clark : > > I cannot, for the life of me, get a picture box to work. I've googled > > to death and I cannot find an example that works. > > > > Here is what I have so far: > >

[Gambas-user] Picturebox

2010-02-27 Thread Keith Clark
I cannot, for the life of me, get a picture box to work. I've googled to death and I cannot find an example that works. Here is what I have so far: $Image = Image.Load("/home/keithclark/" & ISBN.text & ".jpg") BookPictureBox.Picture.Image = $Image And all I get back is Null Object error.

Re: [Gambas-user] Text box event triggered by

2010-02-27 Thread Keith Clark
Ron, Perfect and thank you. Keith On Sat, 2010-02-27 at 10:40 +0100, Ron wrote: > > Keith Clark wrote: > > I have a text box where data is entered via a bar code scanner. The > > scanner adds an code at the end of the data. > > > > I want that to trigg

[Gambas-user] Text box event triggered by

2010-02-26 Thread Keith Clark
I have a text box where data is entered via a bar code scanner. The scanner adds an code at the end of the data. I want that to trigger some code. What "event" is triggered by that, if any. Thanks, Keith -- Downlo

[Gambas-user] Help files

2010-02-26 Thread Keith Clark
I'm trying to access the Gambas online documentation by selecting the question mark in Gambas, then Help Browser. A browser opens but I keep getting the following error when trying to access anything. I'm running under Ubuntu 9.10 Unable to load page Problem occurred while loading the URL fil

Re: [Gambas-user] New Gambas Install missing parts

2010-02-26 Thread Keith Clark
On Fri, 2010-02-26 at 06:46 -0800, charlesg wrote: > Hi > > What Linux distro? What version Gambas? > > If you installed from Ubuntu repository, Go into Synaptic, search on Gambas > and install missing components. The dang repository version is incomplete. > > rgds Charles, Thanks! That did i

[Gambas-user] New Gambas Install missing parts

2010-02-26 Thread Keith Clark
I have just installed Gambas 2 on a machine and when I try to run my application I get the following errors: Some components are missing: gb.db.form, gb.net, gb.net.smtp I have googled this and cannot seem to find much. I'm sure I have solved this problem in the past fut I cannot remember how.

Re: [Gambas-user] MySQL data access

2010-02-25 Thread Keith Clark
On Thu, 2010-02-25 at 20:10 -0500, Keith Clark wrote: > I am having some trouble understanding MySQL access. I am new to Gambas > so you may have to take it easy on me! > > Ok, I followed the instructions as per: > > http://gambasdoc.org/help/howto/database > > And I&#

[Gambas-user] MySQL data access

2010-02-25 Thread Keith Clark
I am having some trouble understanding MySQL access. I am new to Gambas so you may have to take it easy on me! Ok, I followed the instructions as per: http://gambasdoc.org/help/howto/database And I'm now trying to insert my first record into a populated database. Here is my code to do so: PUBL

[Gambas-user] MySQL access example

2009-12-05 Thread Keith Clark
Does anyone have an example program that I can take a look at that accesses a remote MySQL database? Keith -- Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud

Re: [Gambas-user] Executable files

2009-06-02 Thread Keith Clark
On Tue, 2009-06-02 at 11:50 +0200, Jesus Guardon wrote: > Doriano Blengino escribió: > > richard terry ha scritto: > >> On Tue, 2 Jun 2009 12:39:13 pm Keith Clark wrote: > >> > >>> I have made my first Executable file via the Project menu item

[Gambas-user] Executable files

2009-06-01 Thread Keith Clark
I have made my first Executable file via the Project menu item and it created a file.gambas file. I sent that to another computer, but it won't execute. Do I need to install gambas on every machine that I want to run gambas created executables on? Thanks, Keith --

[Gambas-user] Gambas documentation

2009-06-01 Thread Keith Clark
I'm using Gambas on Ubuntu 9.04 and when I try to view the documentation by pressing F1, noting comes up in the called upon browser. It states there is no documentation, check your path. For example, when looking for documentation on Chart: File “/usr/share/gambas2/help/help/comp/gb+chart/chart.

[Gambas-user] value box numeration

2009-05-30 Thread Keith Clark
Can a value box be named with a variable. ie: ValueBox[x].Value Keith -- Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Mee

Re: [Gambas-user] MySQL database interaction tutorial

2009-05-29 Thread Keith Clark
On Fri, 2009-05-29 at 08:31 -0700, David Villalobos Cambronero wrote: > try this:http://gambasdoc.org/help/howto/database > > or ask me all you need > > Regards > > > -- > David > > > > ----- Original Message > From: Keith Clark >

[Gambas-user] MySQL database interaction tutorial

2009-05-28 Thread Keith Clark
Is there a good MySQL interaction tutorial available? Keith -- Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the mind

Re: [Gambas-user] Startup problems

2009-05-28 Thread Keith Clark
On Wed, 2009-05-27 at 23:12 -0700, charlesg wrote: > I don't think you answered Diego's questions? Indeed I did not, sorry about that. I am using Ubuntu 9.04 > > The last time I installed Gambas 2.8 from Applications, Add/Remove in Ubuntu > 9.04, the installation was incomplete and I had to go

Re: [Gambas-user] Startup problems

2009-05-27 Thread Keith Clark
On Wed, 2009-05-27 at 15:58 -0600, Diego Fernández wrote: > mmm > > Distro: > Gambas Version: > How did you install it? > When did you get that errors? > > Please provide enough information so the list could help you. > > :D > > Keith Clark escribió: >

[Gambas-user] Startup problems

2009-05-27 Thread Keith Clark
Hi there, I started my first project with gambas and right away I get the following error: missing gb.net, gb.net.smtp, gb.db.form. -- Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering