Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

converting char in pb10

2 posts in Objects Last posting was on 2006-04-12 12:48:55.0Z
Pb NG Posted on 2006-04-12 03:05:49.0Z
From: "Pb NG" <a@a.a>
Newsgroups: sybase.public.powerbuilder.objects
Subject: converting char in pb10
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 203186061051.ctinets.com
X-Original-NNTP-Posting-Host: 203186061051.ctinets.com
Message-ID: <443c6e8d@forums-1-dub>
Date: 11 Apr 2006 20:05:49 -0700
X-Trace: forums-1-dub 1144811149 203.186.61.51 (11 Apr 2006 20:05:49 -0700)
X-Original-Trace: 11 Apr 2006 20:05:49 -0700, 203186061051.ctinets.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8834
Article PK: 736039

I have a problem in converting a character string from a interger in PB10

eg.
string ls_char
integer li_char

li_char=134
ls_char=char(134)

in PB6.5
the HEX value for ls_char is "86"

in PB10
the HEX value for ls_char is "3F"

even using charA(134), the return still be "3F". In fact I needed the return
same as PB6.5 for data compare with DB.
Any suggestion for such case.

Thanks
Joseph


Chris Pollach Posted on 2006-04-12 12:48:55.0Z
From: "Chris Pollach" <cpollach@travel-net.dot.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <443c6e8d@forums-1-dub>
Subject: Re: converting char in pb10
Lines: 32
Organization: STD Inc.
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4927.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4927.1200
NNTP-Posting-Host: stealth.nserc.ca
X-Original-NNTP-Posting-Host: stealth.nserc.ca
Message-ID: <443cf737$1@forums-1-dub>
Date: 12 Apr 2006 05:48:55 -0700
X-Trace: forums-1-dub 1144846135 198.96.2.93 (12 Apr 2006 05:48:55 -0700)
X-Original-Trace: 12 Apr 2006 05:48:55 -0700, stealth.nserc.ca
X-Authenticated-User: pb105beta
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8836
Article PK: 736040

PB 10 is Unicode ... while PB 6.5 was ANSI!

"Pb NG" <a@a.a> wrote in message news:443c6e8d@forums-1-dub...
> I have a problem in converting a character string from a interger in PB10
>
> eg.
> string ls_char
> integer li_char
>
> li_char=134
> ls_char=char(134)
>
> in PB6.5
> the HEX value for ls_char is "86"
>
> in PB10
> the HEX value for ls_char is "3F"
>
> even using charA(134), the return still be "3F". In fact I needed the
return
> same as PB6.5 for data compare with DB.
> Any suggestion for such case.
>
> Thanks
> Joseph
>
>