(cursor, index int)
| 40 | } |
| 41 | |
| 42 | func (self *Sheet) GetCellDataAsNumeric(cursor, index int) string { |
| 43 | |
| 44 | if cursor >= len(self.Rows) { |
| 45 | return "" |
| 46 | } |
| 47 | |
| 48 | r := self.Rows[cursor] |
| 49 | for len(r.Cells) <= index { |
| 50 | r.AddCell() |
| 51 | } |
| 52 | |
| 53 | gn, err := r.Cells[index].GeneralNumeric() |
| 54 | |
| 55 | if err != nil { |
| 56 | return "" |
| 57 | } |
| 58 | |
| 59 | return gn |
| 60 | } |
| 61 | |
| 62 | // 设置单元格 |
| 63 | func (self *Sheet) SetCellData(cursor, index int, data string) { |