「VB6」の版間の差分
ナビゲーションに移動
検索に移動
(同じ利用者による、間の3版が非表示) | |||
1行目: | 1行目: | ||
+ | {{amazon|4881357077}} | ||
+ | [[Excel VBA]] | ||
==Visual Basic 6.0== | ==Visual Basic 6.0== | ||
− | |||
思えばVBの本いっぱい買ったなぁ。この本が最良。 | 思えばVBの本いっぱい買ったなぁ。この本が最良。 | ||
+ | |||
==文法== | ==文法== | ||
*[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行目: | 45行目: | ||
====Stop==== | ====Stop==== | ||
Stop | Stop | ||
− | |||
===TIPS=== | ===TIPS=== | ||
47行目: | 53行目: | ||
===[[Excel VBA]]=== | ===[[Excel VBA]]=== | ||
*[[Excel VBA]] | *[[Excel VBA]] | ||
+ | |||
+ | [[category:プログラミング言語]] |
2021年11月27日 (土) 14:48時点における最新版
目次
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 矢木浩人