Quantcast
Channel: SCN : All Content - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2935

Converting Characters with PB 12.6 - CharA not working correctly?

$
0
0

Hi,

 

i am just testing a migrated Powerbuilder application from PB 9.5 to 12.6. here we have some functionality to read data from a Blob and show it later on with a datawindow.

In this context i discover currently a strange behavior.


e.g.

 

// Get record type (1 Byte)

lstr_record.record_type = CharA(Blobmid(lb_block, 3))

 

This code is working in Powerbuilder 9.5 (only Char instead of CharA) and Powerbuilder 12.5 (which i tested some weeks ago), but in Powerbuilder 12.6 i get some strange chinese character.

 

I was trying to get deeper into the issue and have converted the Blob into Byte Array and i looked to the 3rd byte in above case and i got 67 = 43hex, which would be the expected character 'C'.

 

Is this a bug in Powerbuilder 12.6? Or what do i missing?


Viewing all articles
Browse latest Browse all 2935

Trending Articles