Write the code for a Sub procedure namedDisplayAuto, which displays a message containing the two values passed to it: an automobile make and model. UsestrMakeandstrModelas the parameters. Display the "You own a makemodel." message in a message box. Then write the statement to invoke the procedure, passing it the contents of thestrBrandandstrTypevariables, respectively.
What will be an ideal response?
Private Sub DisplayAuto(ByVal strMake As String,
ByVal strModel As String)
MessageBox.Show("You own a " & strMake & " " & strModel & ".")
End Sub
Call DisplayAuto(strBrand, strType)
You might also like to view...
Answer the following statements true (T) or false (F)
1. Computers can perform a wide variety of tasks because they can be programmed in ways that are specific to the needs of application: T 2. The CPU is the most important component in a computer because without it, the computer could not execute programs. 3. A computer is not a single device, but a system of devices working together. 4. Today’s microprocessors are less powerful than the larger electro mechanical CPUs in early computers.
A(n) __ heading acts as a subtitle by grouping it with a main title heading using the hgroup element.
A. li B. h1 C. h2 D. both b and c
A group of cells arranged into rows and columns, where controls can be placed on a form or report, is called a ________
Fill in the blank(s) with correct word
Excel can display characters in only three font colors: black, red, and blue.
Answer the following statement true (T) or false (F)