表的结果如下:
create table (struct varchar(10) not null primary key)
在form下save代码:
datamodule1.tablestruct.post;
在table的BeforePost代码如下:
if tablestruct.locate('struct',frmstruct.dbedit1.text,[]) then
   showmessage('数据重复,请确认后重新输入');
运行时产生错误"stack overflow!"
请教该怎么解决数据输入重复的提示?