「VB6」の版間の差分
ナビゲーションに移動
検索に移動
(→制御構文) |
|||
4行目: | 4行目: | ||
==文法== | ==文法== | ||
*[http://www.cs.cmu.edu/~bam/uicourse/630spring04/VB_quick_reference.htm Quick Reference] | *[http://www.cs.cmu.edu/~bam/uicourse/630spring04/VB_quick_reference.htm Quick Reference] | ||
+ | ===配列=== | ||
+ | <pre> | ||
+ | Dim text(0 to 5) as String 'index 0 - 5 の配列 | ||
+ | </pre> | ||
+ | |||
===制御構文=== | ===制御構文=== | ||
====If..Then..Else==== | ====If..Then..Else==== | ||
38行目: | 43行目: | ||
====Stop==== | ====Stop==== | ||
Stop | Stop | ||
− | |||
===TIPS=== | ===TIPS=== |
2021年10月25日 (月) 01:07時点における版
目次
Visual Basic 6.0
思えばVBの本いっぱい買ったなぁ。この本が最良。
文法
配列
Dim text(0 to 5) as String 'index 0 - 5 の配列
制御構文
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
Excel VBA
© 2006 矢木浩人