如何设置VB中变量属性
如何设置VB中带有vb前缀的变量属性.如设置vbBorderStyle的属性为4-fixed ToolWindow 你可以直接在属性框中设置,也可以用程序设置,各种控件的属性可以查看帮助. 说的就是用程序设置用 带vb前缀的一般是VB系统定义的常量,实际的值可能是0、1、2之类的,不能更改它的值。给属性赋值时,可以使用它,也可用数值。比如:.Color=vbRed,Color=1等。 先提供下面一段代码给你看,希望对你有所帮助:
Sub jb() '基本约定
Print #1, "filedia"
Print #1, "0"
Print #1, "snap"
Print #1, "off"
Print #1, "osnap"
Print #1, "off"
Print #1, "grid"
Print #1, "off"
Print #1, "ortho"
Print #1, "off"
Print #1, "osnapcoord"
Print #1, "1"
Print #1, "trackpath"
Print #1, "3"
Print #1, "blipmode"
Print #1, "off"
'基本设置
Print #1, "layer"
Print #1, "m"
Print #1, "0"
Print #1, "l"
Print #1, "centerx2"
Print #1, ""
Print #1, "color"
Print #1, "1"
Print #1, ""
Print #1, ""
Print #1, "layer"
Print #1, "m"
Print #1, "1"
Print #1, "l"
Print #1, "dashed"
Print #1, ""
Print #1, "color"
Print #1, "2"
Print #1, ""
Print #1, ""
Print #1, "layer"
Print #1, "m"
Print #1, "2"
Print #1, "l"
Print #1, "coutinuous"
Print #1, ""
Print #1, "color"
Print #1, "5"
Print #1, ""
Print #1, ""
Print #1, "layer"
Print #1, "m"
Print #1, "3"
Print #1, "l"
Print #1, "coutinuous"
Print #1, ""
Print #1, "color"
Print #1, "7"
Print #1, ""
Print #1, ""
Print #1, "layer"
Print #1, "m"
Print #1, "4"
Print #1, "l"
Print #1, "coutinuous"
Print #1, ""
Print #1, "color"
Print #1, "7"
Print #1, ""
Print #1, ""
End Sub
页:
[1]