# Output to screen - known amount of data

Keywords:
Situation:

Your program needs to output data to the user. You know exactly how many elements you want to display, and what type they are. The tip program is an example.

Actions:

Use MsgBox.

Explanation:

Use MsgBox. For example:

Dim tip As Single
...
MsgBox "The tip should be " & tip & "."

MsgBox takes a string expression. THe code will show:

Notice that the message should include an explanation of what the output means, and should be spelled and punctuated correctly.

Referenced in: