出错部分如下:
case QueryRmStut.FieldByName('rm_stus').AsString do
'V':BoxColor := clEmpty;
'O':BoxColor := clSelled;
'B':BoxColor := clReserve;
end;提示错误:
[Error] RoomMap.pas(109): Ordinal type required
[Error] RoomMap.pas(110): Incompatible types: 'Integer' and 'Char'应该怎么解决?
case QueryRmStut.FieldByName('rm_stus').AsString do
'V':BoxColor := clEmpty;
'O':BoxColor := clSelled;
'B':BoxColor := clReserve;
end;提示错误:
[Error] RoomMap.pas(109): Ordinal type required
[Error] RoomMap.pas(110): Incompatible types: 'Integer' and 'Char'应该怎么解决?
自己查字典翻译一下,
[Error] RoomMap.pas(109): Ordinal type required
[Error] RoomMap.pas(110): Incompatible types: 'Integer' and 'Char'
Error] RoomMap.pas(110): Incompatible types: 'Integer' and 'Char'
这句已经说的很明白。
不要被英文提示给吓着了。