📄 qqexp030.html
字号:
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html">
<meta name="Generator" content="千千VB站 VB函数清单">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>千千VB站 VB函数清单</title>
</head>
<body text="#000000" bgcolor="#FFFFFF" link="#2020A0" vlink="#FF0000" alink="#FF0000">
<marquee><b><blink><font color="#000000">设计者选项</font></blink></b></marquee>
<center>
<hr width="100%" szie="4">
</center>
<p> 依照设计者个人喜好而订定的选项。
<p>●Option Base {0|1}<br>
设定所有的VB阵列第一个元素是0或是1,预设值为0。<br>
Dim Tmp(10) As String<br>
MsgBox LBound(Tmp)为0<br>
MsgBox UBound(Tmp)为9<br>
For I = 0 To 9<br>
Tmp(I) = I<br>
Next
<p>(General)<br>
Option Base 1
<p>(Sub)<br>
Dim Tmp(10) As String(br> MsgBox LBound(Tmp)为1<br>
MsgBox UBound(Tmp)为10<br>
For I = 1 To 10<br>
Tmp(I) = I<br>
Next
<p>●Option Compare {Binary|Text|DataBase}<br>
设定所有VB变数是以两位元比较、字符比较或是用数据库比较大小,预设为Text。<br>
两字串A="A" B="a"<br>
在预设值为Text下,A=B。
<p>(General)<br>
Option Compare Binary
<p>(Sub)<br>
两字串A="A" B="a"<br>
在值为Binary下,A < B(按ASCII码大小比较)。
<p>●Option Explicit<br>
设定所有VB变数必需要有严格的宣告。<br>
(General)<br>
Option Explicit
<p>(Sub)<br>
A = 123 ← A变数没有做宣告,故会产生 Error
<p>(General)<br>
Option Explicit
<p>(Sub)<br>
Dim A As Integer<br>
A = 123 ← A变数有做宣告,故才能正常的执行<br>
<br>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -