VB中的常量变量有几种类型?

2025-05-19 13:30:20
推荐回答(1个)
回答(1):

数据类型:
整型数
integer
长整型数
long
单精度型数
single
双精度型数
double
字节型数
byte
逻辑型数
boolean
字符串型数(变长)
string
字符串型数(定长)
string
日期型数
date
货币型数
currency
对象型数
object
变体型数
varient
常量数据类型:
数值常量
字符常量
逻辑型常量
日期型常量
符号常量
比如定义字符串(令text1中的内容为字符串)
dim
a
as
string
a=text1.text