> 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.
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
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
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
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.
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
>
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
> 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
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
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
10 matches
Mail list logo