vb的程序的是
Dim ii() As Byte
ReDim ii(NNNNN + 2)
ii(0) = &HFF
那我在delphi 中应如何写呢,
var
BytArrSend: array[0..4] of Byte;
text:string;
i:integer;
begin
BytArrSend[0] := &HFF;
我这么写出错,请问HFF是16进制吧 怎么换算它啊!
Dim ii() As Byte
ReDim ii(NNNNN + 2)
ii(0) = &HFF
那我在delphi 中应如何写呢,
var
BytArrSend: array[0..4] of Byte;
text:string;
i:integer;
begin
BytArrSend[0] := &HFF;
我这么写出错,请问HFF是16进制吧 怎么换算它啊!
a:array of byte;
begin
SetLength(a,2);
a[0]:=$FF;
end;
Private Sub Command1_Click()
Dim ii() As Byte
ReDim ii(NNNNN + 2)
ii(0) = &HFF
Command1.Caption = ii(0)
End Sub
Command1是一个Button,执行完以后的结果是Button的Caption为255
所以,应该是255吧
你想转换16进制到其他非二进制的数,必须自己写
inttohex//整数转16进制
hextobin//16 to 2
bintohex//2 to 16