「VB6」の版間の差分
ナビゲーションに移動
検索に移動
(ページの作成:「==Visual Basic 6.0== {{amazon|4881357077}} 思えばVBの本いっぱい買ったなぁ。この本が最良。 ==文法== *[http://www.cs.cmu.edu/~bam/uicourse/630sp…」) |
|||
6行目: | 6行目: | ||
===制御構文=== | ===制御構文=== | ||
====If..Then..Else==== | ====If..Then..Else==== | ||
− | If A | + | If A>5 Then Print "A is a bit number!" |
====For...Next - Loops ==== | ====For...Next - Loops ==== | ||
For i = 1 to 5 | For i = 1 to 5 | ||
15行目: | 15行目: | ||
Next X | Next X | ||
====While...Wend==== | ====While...Wend==== | ||
− | While i | + | While i < 5 |
i = i +1 | i = i +1 | ||
Wend | Wend | ||
24行目: | 24行目: | ||
End select | End select | ||
====Do...Loop==== | ====Do...Loop==== | ||
− | Do while i | + | Do while i < 5 |
i = i + 1 | i = i + 1 | ||
Loop | Loop |
2020年2月15日 (土) 08:06時点における版
目次
Visual Basic 6.0
思えばVBの本いっぱい買ったなぁ。この本が最良。
文法
制御構文
If..Then..Else
If A>5 Then Print "A is a bit number!"
For...Next - Loops
For i = 1 to 5 print #1, i next i
For Each ... Next
For Each X in Form1.controls Next X
While...Wend
While i < 5 i = i +1 Wend
Select Case
Select case i Case 1 : print "it was a 1" Case 2 : print "it was a 2" End select
Do...Loop
Do while i < 5 i = i + 1 Loop
Choose
Choose (index, "answer1", "answer2", "answer3")
With
With textbox1 .Height = 100 .Width = 500 End With
End
End
Stop
Stop
TIPS
- VB ファイルを読む
- Perl VBのプロパティプロシージャを生成
- VB 有効期間に含まれるデータを判定
Excel VBA
- Excel VBA
© 2006 矢木浩人