Funny notation with #

后端 未结 4 1989
臣服心动
臣服心动 2020-12-15 23:07

what does this mean?

if CDbl(Trim(Range(\"M\" & r).Text)) > 0# then...

what does the # do?? and what does cdbl do?

4条回答
  •  自闭症患者
    2020-12-15 23:18

    CDbl casts the contents to a double value. The # indicates it's a numeric double value. VB and VBA are sometimes quite forgiving when you're dealing with numbers, which can prove to be dangerous!

提交回复
热议问题