[Gambas-user] In Plain English- A definition of the Datatypes please?

2009-04-09 Thread jbskaggs
Earlier this week I was given an excellent definition oh Hungarian Convetion naming ie the h in hObjects. Could someone either point me to a resource in plain English or explain to me in plain English the Datatypes? Integer Long Short Array etc... this is what I found on the documentation: Dat

Re: [Gambas-user] MoveFirst MoveNext etc

2009-04-09 Thread Jeff
> But during the long years now I have written programs :-) I found that we > most > often test for errors than success. So using TRUE for errors leads to less > lines of code. > > It is just a matter of habit. And changing habits is a good thing, it keeps > you young. :-) > I need somethin

Re: [Gambas-user] shared librarry into gambas

2009-04-09 Thread Doriano Blengino
M0E Lnx ha scritto: Huh!. I wouldn't be surprised at all if your arguments are true, but for someone like myself, I feel that the documentation on this subject very limited. I will try to look at some examples. I need to access the libparted library, in the mean time, if you want to work up a s

Re: [Gambas-user] MoveFirst MoveNext etc

2009-04-09 Thread Benoît Minisini
> On Thursday 09 April 2009, Jeff wrote: > > What is the thinking behind a Result.MoveFirst() and MoveNext() > > returning a false if a record is there? > > > > So, to read round a result set I end up using a Boolean with a double > > negative: > > > > noMoreRows = myResult.MoveFirst() > > WHILE NO

Re: [Gambas-user] MoveFirst MoveNext etc

2009-04-09 Thread Doriano Blengino
Ron_1st ha scritto: > On Thursday 09 April 2009, Jeff wrote: > >> What is the thinking behind a Result.MoveFirst() and MoveNext() >> returning a false if a record is there? >> >> So, to read round a result set I end up using a Boolean with a double >> negative: >> >> noMoreRows = myResult.MoveFi

Re: [Gambas-user] MoveFirst MoveNext etc

2009-04-09 Thread Ron_1st
On Thursday 09 April 2009, Jeff wrote: > What is the thinking behind a Result.MoveFirst() and MoveNext() > returning a false if a record is there? > > So, to read round a result set I end up using a Boolean with a double > negative: > > noMoreRows = myResult.MoveFirst() > WHILE NOT noMoreRows >

[Gambas-user] MoveFirst MoveNext etc

2009-04-09 Thread Jeff
What is the thinking behind a Result.MoveFirst() and MoveNext() returning a false if a record is there? So, to read round a result set I end up using a Boolean with a double negative: noMoreRows = myResult.MoveFirst() WHILE NOT noMoreRows PRINT myResult!id noMoreRows = myResult.MoveNext() WEN

Re: [Gambas-user] shared librarry into gambas

2009-04-09 Thread Benoît Minisini
> I always wandered myself how this works. > > For instance... in python, you can code something like > > import gtk > import glade > import pygtk > > And use the methods in these modules throughout your app. > could this be done in gambas somehow? > > I have had instances in gambas where I could r

Re: [Gambas-user] disallow characters in TextBox

2009-04-09 Thread Benoît Minisini
> > So, you have to write something like : > (this is not tested) > IF key.Code = "~" THEN > STOP EVENT > ENDIF If you want to check a key against a real string, you can't do that, you must use the Key.Text property. Key.Text is different from Key.Code! Key.Code identifies the keyboard k

Re: [Gambas-user] shared librarry into gambas

2009-04-09 Thread M0E Lnx
Huh!. I wouldn't be surprised at all if your arguments are true, but for someone like myself, I feel that the documentation on this subject very limited. I will try to look at some examples. I need to access the libparted library, in the mean time, if you want to work up a sample for me that acce

Re: [Gambas-user] disallow characters in TextBox

2009-04-09 Thread Charlie Reinl
Am Donnerstag, den 09.04.2009, 12:23 +0100 schrieb Joshua Higgins: > Hi, > > Is it possible to disallow certain characters from being entered in a > TextBox? > > I'm splitting the data from the textbox and don't want the user to type in > the character (~) that is being used to split. > > Thanks

Re: [Gambas-user] catching errors

2009-04-09 Thread joshiggins
Just got back and tried it... only the catch in ihaserror() runs. Makes sense. -- View this message in context: http://www.nabble.com/catching-errors-tp22969154p22969611.html Sent from the gambas-user mailing list archive at Nabble.com. -

[Gambas-user] catching errors

2009-04-09 Thread Joshua Higgins
Hi, I've been using CATCH as a sort of rudimentary catch all error handling in my code. Just got a small question about when Gambas will run this code: Example code follows PUBLIC SUB ihaserror() ' the error happens in here CATCH PRINT "OH NO!" END PUBLIC SUB Main() ihaserror() CATCH PRINT "ERRO

[Gambas-user] disallow characters in TextBox

2009-04-09 Thread Joshua Higgins
Hi, Is it possible to disallow certain characters from being entered in a TextBox? I'm splitting the data from the textbox and don't want the user to type in the character (~) that is being used to split. Thanks. -- joshua higgins >>-- ---