2010-07-13 139 views

回答

0

你可以使用MemoryBlock中:

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

當然,CHR(65)做同樣的事情......

1

如果你的意思是把一個字節到字節的二進制字符串表示(或十六進制或八進制),則:

Dim x As Byte = 24 //For example 
    Dim z, y, w As String 
    y = Bin(x)  //Binary = "11000" 
    z = Hex(x)  //Hexadecimal = "18" 
    w = Oct(x)  //Octal = "30"