Re: [Gambas-user] Catch NULL character

2009-04-21 Thread Benoît Minisini
> 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". Just as a summary: NULL is NULL, a special constant (like TRUE or FALSE), that is the default value of Variant, String, Date and Object datatypes.

Re: [Gambas-user] Catch NULL character

2009-04-20 Thread Rodney Rundstrom
iling list for gambas users Subject: Re: [Gambas-user] Catch NULL character Actually, the NULL character is a true character. Specifically, it is CHR$(0) <---zero. It is an actual character in ASCII and other sets. Alternatively, NULL is used in databases, Java, C, others to describe certain s

Re: [Gambas-user] Catch NULL character

2009-04-19 Thread nando
using results will follow. -Fernando -- Original Message --- From: "Rodney Rundstrom" To: "'mailing list for gambas users'" Sent: Mon, 20 Apr 2009 10:56:29 +1200 Subject: Re: [Gambas-user] Catch NULL character > As the NULL character is not a

Re: [Gambas-user] Catch NULL character

2009-04-19 Thread Rodney Rundstrom
rch 2009 9:26 a.m. To: gambas-user@lists.sourceforge.net Subject: Re: [Gambas-user] Catch NULL character 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 appreciat

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 Doriano Blengino
CelticBhoy ha scritto: > 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 >

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

Re: [Gambas-user] Catch NULL character

2009-03-28 Thread Benoît Minisini
> CelticBhoy ha scritto: > > 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". > > You are using an array notation, ie, sElement[] designes an array of > strings, each composed of many characte

Re: [Gambas-user] Catch NULL character

2009-03-28 Thread Doriano Blengino
CelticBhoy ha scritto: > 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". > You are using an array notation, ie, sElement[] designes an array of strings, each composed of many characters. Moreover

[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