再日期字段对应的Field的DisplayFormat属性写hh:nn:ss
即
TDateTimeField(DataSet.FieldByName('YourDateField')).DisplayFormat := 'hh:nn:ss';
即
TDateTimeField(DataSet.FieldByName('YourDateField')).DisplayFormat := 'hh:nn:ss';
调试欢乐多
dbgrid的datasource.dataset里这样做比如你用的是adotable,在adotable的field editor里选中所要编辑的字段
在ongettext里面将text的值进行改变
text:=copy(text,...,...);
应该明白了吧
你在fields.onsettext里面改回去就是了吗
对了我上面的
tex:=copy(text这个text有误
应该是TDateTimeField(sender).asstring