Output
You could output to any of the following:
- A messagebox – no need to add anything to the form, you just need to enter the appropriate code.
- A label – put one on the form and give it a name beginning with LBL. You might want to delete any text in the text property.
- A listbox – this is well suited to displaying a list (surprisingly). Add one to the form and give it a name beginning with LST.
You may need to use concatenation (&) to join strings and variables together.
Example code - MessageBox
show
| VB code |
Pseudocode |
MsgBox (“Your new username is “ & username) |
SEND “Your new username is “ & username TO DISPLAY |
Example code - Label
show
| VB code |
Pseudocode |
lblOutput.Text = “Your new username is “ & username |
SEND “Your new username is “ & username TO DISPLAY |
Example code - ListBox
show
| VB code |
Pseudocode |
lstOutput.Items.Add (“Your new username is “ & username) |
SEND “Your new username is “ & username TO DISPLAY |