function Main()
Main=1
end function

解决方案 »

  1.   

    must have startup form or sub main()
    错误!!!!!!!!!
      

  2.   

    http://expert.csdn.net/Expert/topic/541/541080.xml?temp=.610409
      

  3.   

    你是在做ActiveX Exe 吗?
      

  4.   

    sub main()
    PRINT '1'
    end sub
      

  5.   

    sub main()
    PRINT '1'
    end sub
    编译错误
      

  6.   

    那大家告诉
    我如何执行dos命令“echo 1”吧她总是说找不到文件
      

  7.   

    shell "command /c echo 1"
      

  8.   

    shell "command /c echo 1"
    还是run time error
    file not found
      

  9.   

    under 98, me
    shell "command.com /k echo 1",vbnormalfocusunder 2k,xp
    shell "cmd.exe /k echo 1",vbnormalfocus
      

  10.   

    别忙了!
    VB程序不能运行在DOS环境下