自己定义个操作类型出现错误,请大家帮忙,每次问的都是很菜的问题
unit AISMTypeUnt;
interface
const
otBrowse = '0000000001';
otAdd ='0000000010';
otDelete ='0000000100';
otModify ='0000001000';
otPrint ='0000010000';
type
TOptType=(otBrowse,otAdd,otDelete,otModify,otPrint);
implementation
end.
错误如下:
[Error] AISMTypeUnt.pas(13): Identifier redeclared: 'otBrowse'
[Error] AISMTypeUnt.pas(13): Identifier redeclared: 'otDelete'
[Error] AISMTypeUnt.pas(13): Identifier redeclared: 'otPrint'
这为什么好错啊,为什么otadd就没有出错呢?
why?