MCPcopy
hub / github.com/davyxu/tabtoy / GetCellDataAsNumeric

Method GetCellDataAsNumeric

v2/sheet.go:42–60  ·  view source on GitHub ↗
(cursor, index int)

Source from the content-addressed store, hash-verified

40}
41
42func (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// 设置单元格
63func (self *Sheet) SetCellData(cursor, index int, data string) {

Callers 1

processLineMethod · 0.80

Calls 1

AddCellMethod · 0.45

Tested by

no test coverage detected