|
-
May 30th, 2012, 01:06 AM
#1
Thread Starter
Addicted Member
Basic Question
Dear Reader,
This may seem like a pointless question but it's pure curiosity. I'm going over some tutorials on basic stuff like using Form_Load () to simply Print "Hello World" onto a Form. The code I stumbled upon is this,
Code:
Private Sub
A = Tom
B = "likes"
C = "to"
D = "eat"
E = "burgers"
Print A+B+C+D+E
End Sub
The code by itself does not work. Originally because it doesn't have anything after Sub, an identifier I believe it's called. Also, the quotations are unnecessary. The only one that is necessary to have a quotation is to because it's an ambiguous term. Overall the code doesn't work. So I'm trying to change it into something that DOES work. Here's what I came up with:
Code:
Private Sub Form_Load ()
A = Tom
B = likes
C = eating
D = burgers
Print A + B + C + D
End Sub
However that doesn't work either. I tried But that doesn't work either. Obviously, I Dim'd B..C..D also. I would like to know what I am doing wrong, why it's the way it should be (like what makes it correct), and what it should be.
Again, this is for learning purposes only because I'm curious about Visual Basic 6 immensely.
Thank you for taking the time to read this message.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|