摘要: 在进行数据库导出到Excel时,常会用到将列,如 第1列转换为 A,第2列转换为 B 的情况。这时你就要写算法了。哈哈,我这里有现成的了。先上代码,后解析。 function CellToRef(const X,Y:Integer):string; function GetRef(const X:Integer):string; var token,I,R:Integer; begin Result:=''; token:=X; repeat I := token div 26; R := token mod 26; if R <> 0 then begin Res 阅读全文
posted @ 2012-03-26 10:10 (大贤者模式) 阅读(3495) 评论(0) 推荐(1) 编辑