Hi,
how could I translate the following delphi code into oxygene?
type
TCmdSyntax = record
Text: String;
ArgCount: Integer;
end;
TCmdToken = (
cmdNOP = 0,
cmdVER,
cmdUSERID,
cmdERROR
);
const
Syntax: Array[TCmdToken] of TCmdSyntax = (
(Text: ''; ArgCount: 1),
(Text: 'VER'; ArgCount: 4),
(Text: 'USERID'; ArgCount: 2),
(Text: ''; ArgCount: 1)
);
My only problem is the last part. The code before is simple:
type
CmdSyntax = public record
Text: String;
ArgCount: Integer;
end;
CmdToken = (
cmdNOP = 0,
cmdVER,
cmdUSERID,
cmdERROR
);
Thank you!
Benny