PowerBuilder 10.5.2 Build 7826 differs from PowerBuilder 11.5.1 Build 4675

Apparently there's some data conversion issues that differ from PowerBuilder 
10.5.2 and 11.5.1 (builds listed in subject). The following mini scrip 
results in different returned values:

Byte lb_test
Decimal ld_test

lb_test = 48
ld_test = Dec(lb_test)

MessageBox("Test", String(ld_test))


In PowerBuilder 10.5.2, the messagebox displays the value "48". In 
PowerBuilder 11.5.1 the messagebox displays the value "0.48". It appears 
that in PB 11.5.1, it's dividing the result by 100 for some reason. It 
appears to be a bug, just wanted to verify if anyone has seen similar 
behavior.

David Hauze 

0
David
2/11/2010 10:33:28 PM
sybase.powerbuilder.general 62418 articles. 17 followers. Follow

3 Replies
2182 Views

Similar Articles

[PageSpeed] 22

Yes, I see that too, using PB 10.5.1.
I've put a message on the beta 12 newsgroup, but PB12 has a split 
personality <g>

-- 
Terry Dykstra (TeamSybase)
http://powerbuilder.codeXchange.sybase.com/
http://casexpress.sybase.com
product enhancement requests:
http://my.isug.com/cgi-bin/1/c/submit_enhancement

"David Hauze" <dhauze@hotmail.com> wrote in message 
news:4b7485b8$1@forums-1-dub...
> Apparently there's some data conversion issues that differ from 
> PowerBuilder 10.5.2 and 11.5.1 (builds listed in subject). The following 
> mini scrip results in different returned values:
>
> Byte lb_test
> Decimal ld_test
>
> lb_test = 48
> ld_test = Dec(lb_test)
>
> MessageBox("Test", String(ld_test))
>
>
> In PowerBuilder 10.5.2, the messagebox displays the value "48". In 
> PowerBuilder 11.5.1 the messagebox displays the value "0.48". It appears 
> that in PB 11.5.1, it's dividing the result by 100 for some reason. It 
> appears to be a bug, just wanted to verify if anyone has seen similar 
> behavior.
>
> David Hauze 


0
Terry
2/11/2010 11:47:08 PM
I'll post it in both here and in .powersrcipt, but an additional FYI here.

Implicit conversion from Byte to Decimal also has the issue, regardless of 
using the Dec function.

So if the code is modified as such:
===
Byte lb_test
Decimal ld_test

 lb_test = 48
*ld_test = lb_test

MessageBox("Test", String(ld_test))
===
The message box still returns "0.48" as the decimal string. I'd guess under 
the hood, PB is just calling the Dec() function or the same basic code for 
the conversion.

Thanks,

Chris


"David Hauze" <dhauze@hotmail.com> wrote in message 
news:4b7485b8$1@forums-1-dub...
> Apparently there's some data conversion issues that differ from 
> PowerBuilder 10.5.2 and 11.5.1 (builds listed in subject). The following 
> mini scrip results in different returned values:
>
> Byte lb_test
> Decimal ld_test
>
> lb_test = 48
> ld_test = Dec(lb_test)
>
> MessageBox("Test", String(ld_test))
>
>
> In PowerBuilder 10.5.2, the messagebox displays the value "48". In 
> PowerBuilder 11.5.1 the messagebox displays the value "0.48". It appears 
> that in PB 11.5.1, it's dividing the result by 100 for some reason. It 
> appears to be a bug, just wanted to verify if anyone has seen similar 
> behavior.
>
> David Hauze 


0
Chris
2/12/2010 2:34:59 PM
It's true the result differs.

All I want to mention is that in the help files it's clearly stated
that dec function gets as argument string or blob. Byte is a different
datatype. The strange is that dec works fine with other datatypes like
integers. And of course it works fine with string datatypes.

So according to the documentation you should write:

ld_test = Dec(string(lb_test))

And this work fine.

Adnreas Mykonios.

On 11 Feb 2010 14:33:28 -0800, "David Hauze" <dhauze@hotmail.com>
wrote:

>Apparently there's some data conversion issues that differ from PowerBuilder 
>10.5.2 and 11.5.1 (builds listed in subject). The following mini scrip 
>results in different returned values:
>
>Byte lb_test
>Decimal ld_test
>
>lb_test = 48
>ld_test = Dec(lb_test)
>
>MessageBox("Test", String(ld_test))
>
>
>In PowerBuilder 10.5.2, the messagebox displays the value "48". In 
>PowerBuilder 11.5.1 the messagebox displays the value "0.48". It appears 
>that in PB 11.5.1, it's dividing the result by 100 for some reason. It 
>appears to be a bug, just wanted to verify if anyone has seen similar 
>behavior.
>
>David Hauze 
0
Andreas
2/12/2010 2:39:33 PM
Reply:

Web resources about - PowerBuilder 10.5.2 Build 7826 differs from PowerBuilder 11.5.1 Build 4675 - sybase.powerbuilder.general

PowerBuilder - Wikipedia, the free encyclopedia
PowerBuilder is an integrated development environment owned by Sybase , a division of SAP . It has been in use since 1991, peaking around 1998 ...

Sybase PowerBuilder tool readied for Microsoft's .Net
... Win32 or newer style .Net development After several years of work, Sybase is ready to deliver on the final step in its plan to move PowerBuilder ...

Jim O'Neil (@jimoneil) on Twitter
Sign in Sign up To bring you Twitter, we and our partners use cookies on our and other websites. Cookies help personalize Twitter content, tailor ...

Open Directory - Computers: Programming: Languages
about dmoz - dmoz blog - report abuse/spam - help the entire directory only in Programming/Languages Description Top : Computers : Programming ...

The HP Booth Staff (Goons) Owe Me an Apology
... when you might need to use it. For instance, when I was in the WinRunner world there were plugins for driving terminal emulators and powerbuilder ...

Contact Us - Sybase Inc
Thanks for visiting the 主页 section of Sybase.com. Here you will find information about Contact Us. For more information about Business Intelligence, ...

热门搜索 - 我的异常网
... 我的异常网 » 热门搜索 sdpnet2 移动【A111】其它用户原因鉴权失败,是什么意思啊 http:// 192.168.1.102:22578 本网站服务器位于美国,受美国法律保护 MiniUI js 破解 http://192.168.1.103:8080/ powerbuilder ...

Mobile app security: Always keep the back door locked
The best way to keep mobile apps safe is to secure the services they connect to.

10 Tech Skills That Will Instantly Net You A $100,000+ Salary
... that let's developers run Java applications. Java is highly popular language for writing web apps and custom enterprise apps. No. 8: PowerBuilder ...

Top Ranked Articles
Top Ranked Articles - Free source code and tutorials for Software developers and Architects.; Updated: 23 Feb 2013

Resources last updated: 1/19/2016 3:03:41 PM