条件:
Dim aa as String
Dim test aa="test"问题:
怎么用aa来表示testvb有这个功能码?

解决方案 »

  1.   

    bakw(凉快狗):
      vbscrip中怎么实现啊?
      

  2.   

    不明白。?
    Dim aa As String
    Dim test
    'test = Date
    aa = CStr(test)
    MsgBox aa
      

  3.   

    Dim aa As String
    Dim test
    test = 123
    aa = testMsgBox aa是这样?
      

  4.   

    自定义常量行不行Const aa = "test"!!!!!!
      

  5.   

    完全不懂你的意思?
    不知道用vbscript能否完成你的 要求,但最主要的还是,不知道你想干吗大眼睛兄弟,收工拉,快回家吧。今天过年。帮我跟各位兄弟拜个年。
    新年快乐。
      

  6.   

    不知道什么意思,但VB的类型检查很宽松的啊,如
    dim a as integer
    dim b as string
    b="5678"
    a=1234
    msgbox a
    a=a+b
    msgbox a
    这样都是可以的啊,不过这样书写的可读行差,而且程序运行速度将减慢
    VB中还是有条件编译命令啊:在IF。ELSE语句前加井号就可以了
      

  7.   

    我懂你的意思了,就像 FoxPro 中的 & 替换一样,把一个字符串变量的值当成 VB 代码来使用。VB 显然不可以。
      

  8.   

    根本不懂你的意思,
    这样可以吗???
    Dim aa as String
    Dim test as Varientaa = str(test)
    ???????????????
    实在是不明白,错了别见笑啊!!!!!!
      

  9.   

    意思不是很明白,如果只想用aa来引用test,可以使用集合(collection),它支持用字符串作索引。dim mcol as new collection
    a="test"
    mcol.Add  test,"test"
    用mcol.Item(a)就可以引用test了。