George Hallam
10-03-2008, 10:17 AM
ok at school i am taking VB lessons i have just started and i am stuck already
the question is (we are using variables)
"display your first name on a form on a single line, when the ok button is clicked it will display for last name. The first name should be stored during the forms load even and the surname during the buttons click even. you will need to use concatenation operator for the out put"
The form itself looks like this
http://i289.photobucket.com/albums/ll221/jiggyghallam/form1.png
this is the code i have so far (i know its a long winded way to do this task but the whole point of the exercise is by clicking the OK command it will add my surname)
Option Explicit
Dim surname As String
Private Sub cmd_Click()
surname = "Hallam"
End Sub
Private Sub Form_Load()
Form1.Show
Form1.Print "My name is George "; surname
End Sub
if i am not clear with what i am saying ask (its hard to word what i need to do)
Thanks,
VB noob
:D
the question is (we are using variables)
"display your first name on a form on a single line, when the ok button is clicked it will display for last name. The first name should be stored during the forms load even and the surname during the buttons click even. you will need to use concatenation operator for the out put"
The form itself looks like this
http://i289.photobucket.com/albums/ll221/jiggyghallam/form1.png
this is the code i have so far (i know its a long winded way to do this task but the whole point of the exercise is by clicking the OK command it will add my surname)
Option Explicit
Dim surname As String
Private Sub cmd_Click()
surname = "Hallam"
End Sub
Private Sub Form_Load()
Form1.Show
Form1.Print "My name is George "; surname
End Sub
if i am not clear with what i am saying ask (its hard to word what i need to do)
Thanks,
VB noob
:D