tags:

views:

34

answers:

2

In RealBasic, is there a way to convert a byte to a string?

A: 

Depends on what you need the results to be

npalardy
A: 

You could use MemoryBlock:

  Dim m As MemoryBlock
  m = NewMemoryBlock(1)
  m.Byte(0) = 65
  MsgBox(m.StringValue(0, 1)) // Displays "A"

Of course, Chr(65) does the same thing...

Paul Lefebvre