我有10个列,都是时段字段,然后这10个列的列名都有“时间”这两个字符
我的做法是
if 列是数字字段 and 列名包含“时间” then
xxx
endif
原来的老版本汇总模式不支持format时,一切ok,后来嘛就出bug了
http://www.foxtable.com/bbs/dispbbs.asp?BoardID=12&ID=31843&skin=0
现在我把代码注释掉了
但是就像我帖子里说的,3小时,foxtable显示为3,这太不方便了,我想把时段的字段格式化为00:00
代码如下
if e.col.isnumberic andalso e.col.name.contains("时间")=true then
if e.row.isnull(e.col.name)=false //有内容
e.row.text=format(e.row\3600,"00")&":"&format(e.row/60)mod 60,"00"
endif
endif
红色部分怎么写?