Integer.Parse vs. CInt

前端 未结 4 2037
轻奢々
轻奢々 2020-12-01 14:04

Basically, I have been using both Integer.Parse and CInt in most of my daily programming tasks, but I\'m a little bit confused of what the difference is between

4条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-01 14:24

    The .Parse methods are used to extract a value of the type from a string that represents the value (e.g 2 from "2") The C functions operate on expressions and return a variant sub-typed to the desired type (e.g. CInt("2") OR CInt(SomeDouble + SomeDouble), etc.).

提交回复
热议问题