'This is the General Section of your code
'It is often used to declare all your variables
'variable 1 is a string
Dim myName As String 'string can hold characters
'variable 2 is a integer
Dim myYear As Integer 'interger can hold numbers (..-2,-1,0,1,2,3...n)
'variable 2 is a double
Dim myNumber As Double 'double can hold decimal numbers 1.5 or -2.7 etc
'The form load is the initiation section of your program
'The program reads this procedure first
Private Sub Form_Load()
myName = "Mr Cool" 'define myName set the content as "Mr Cool"
myYear = 2002 'define myYear set the value as 2002
myNumber = 8.8 'define myNumber set the value as 8.8
Private Sub Command1_Click()
Text1.Text = myName 'Text out, the content of myName
Text2.Text = myYear 'Text out, the value of myYear
Text3.Text = myNumber 'Text out, the value of myNumber
||Visual Basic Source Code
I hope you found this Visual Basic tutorial useful!
Don't forget to mention Apron Tutorials in your References!
Ronny André Reierstad