如何在Visual Basic中创建变量?

时间:2010-05-29 19:19:11

标签: vb.net

如何在Visual Basic中创建变量?

3 个答案:

答案 0 :(得分:2)

答案 1 :(得分:0)

一般语法是:

Dim variableName As [DataType] [= *initialValue*]

例如:

Dim carSpeed As Double = 5.7

答案 2 :(得分:0)

实例;

  • Dim VariableName As Double
  • Dim VariableName As Single