函数总报类型不匹配,是什么原因
Public Function MSHFlexGridset(Grid As MSHFlexGrid)
Grid.Rows = 20
End Function
上面写的是以MSHFlexGrid类型的形参,但运行下面语句时,就报类型不匹配的错误
MSHFlexGridset (MSHFlexGrid1)
是什么原因,请各位指教,谢谢!
[解决办法]
MSHFlexGridset MSHFlexGrid1
或
Call MSHFlexGridset(MSHFlexGrid1)