以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  BUG收集  (http://foxtable.com/bbs/list.asp?boardid=12)
----  升级到20191217版后发现bug  (http://foxtable.com/bbs/dispbbs.asp?boardid=12&id=144720)

--  作者:肥肥记
--  发布时间:2019/12/27 17:49:00
--  升级到20191217版后发现bug
编译错误:Overload resolution failed because no accessible \'SetCellStyle\' can be called without a narrowing conversion:
    \'Public Sub SetCellStyle(row As Integer, col As Integer, newStyle As C1.Win.C1FlexGrid.CellStyle)\': Argument matching parameter \'row\' narrows from \'Double\' to \'Integer\'.
    \'Public Sub SetCellStyle(row As Integer, col As Integer, newStyle As C1.Win.C1FlexGrid.CellStyle)\': Argument matching parameter \'col\' narrows from \'Double\' to \'Integer\'.
    \'Public Sub SetCellStyle(row As Integer, colName As String, newStyle As C1.Win.C1FlexGrid.CellStyle)\': Argument matching parameter \'row\' narrows from \'Double\' to \'Integer\'.
    \'Public Sub SetCellStyle(row As Integer, colName As String, newStyle As C1.Win.C1FlexGrid.CellStyle)\': Argument matching parameter \'colName\' narrows from \'Double\' to \'String\'.



错误代码:e.Table.Grid.SetCellStyle(ary(0)+x, ary(1)+1, ss)  不能使用了




--  作者:肥肥记
--  发布时间:2019/12/27 17:53:00
--  
cint 
转换成 整型 解决问题