Is it not possible to store Char(0) in Blob-Variables?
int li
string ls
char lc[5]
blob{5} lbl
lc[1] = Char(2)
lc[2] = Char(66)
lc[3] = Char(0)
lc[4] = '#'
lc[5] = 'X'
lc[5] = Char(65)
lbl = Blob(lc)
lc = 'ABCDEF'
FOR li = 1 TO 5
lc[li] = Char(BlobMid(lbl, li, 1))
NEXT
--
<Manfred.Br...@gmx.at>
Wanek electronic design
Sorry, my Fingers are faster then I'm thinking.
Is it not possible to store Char(0) in Blob-Variables? In the following
Script, I cannot get the Characters after the Char(0).
Who can me explain the difference between String and Blob??
Thank's,
Mandy
Hope this helps,
In article <YvH2p4ff$GA....@forums.sybase.com>,
Manfred.Br...@gmx.at says...
>
>Hi!
>
>Is it not possible to store Char(0) in Blob-Variables?
>
>int li
>string ls
>char lc[5]
>blob{5} lbl
>
>lc[1] = Char(2)
>lc[2] = Char(66)
>lc[3] = Char(0)
>lc[4] = '#'
>lc[5] = 'X'
>lc[5] = Char(65)
>
>lbl = Blob(lc)
>lc = 'ABCDEF'
>FOR li = 1 TO 5
> lc[li] = Char(BlobMid(lbl, li, 1))
>NEXT
--
Brad Mettee
PC HotShots, Inc.
Baltimore, MD
--> Let us bring out the *Power* of your PCs <--
* finger bme...@clark.net for PGP Key *
The problem is in
lc[3] = Char(0)
PB strings are null-terminated strings. Then you are inserting a
'terminator' there. :)
HTH
Víctor Maidana.
Manfred Brandstetter <Manfred.Br...@gmx.at> escribió en el mensaje de
noticias JCERq8ff$GA....@forums.sybase.com...
> Hi!
>
> Sorry, my Fingers are faster then I'm thinking.
> Is it not possible to store Char(0) in Blob-Variables? In the following
> Script, I cannot get the Characters after the Char(0).
> Who can me explain the difference between String and Blob??
>
> Thank's,
> Mandy
>
--
pbm_hopethishelps,
Roy Kiesler [TeamSybase]
Sybase Developers Network (SDN) - http:///www.sybase.com/sdn
"Víctor Maidana" <vgu...@highway.com.py> wrote in message
news:Lj6fa0gf$GA....@forums.sybase.com...
Thank's, but why does PB this not for me? Converts PB the Character-Array to
a string before it makes a copy in the blob?