Serial number is a *binary* value, not a text. It represents a huge integer value.

Example: 32-bit integer represents an integer value and occupies 4 bytes in memory. 64-bit integer occupies 8 bytes of memory. Serial number is an integer value that may occupy any number of bytes of memory.

To show the serial number to the user you can use SBUtils.BinaryToString function which will BASE16-encode the binary value.

Hi Eugene; On previous SBB version I was using WideStrToStr. It does not cause a compiler error, but it raises an exception at runtime. Now I changed to BinaryToString and I get a large Base16 value. Thank you!.