Re: [Gambas-user] shared librarry into gambas

2009-04-09 Thread Doriano Blengino
M0E Lnx ha scritto: I always wandered myself how this works. For instance... in python, you can code something like import gtk import glade import pygtk Doing so, you are not using 'external libraries' (shared objects) - you are merely using a python library located somewhere in

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

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 ERROR

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

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 really use a

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 PRINT

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.MoveFirst() WHILE

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 NOT noMoreRows

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 something to