Write the code for a function namedGetMajor. The function should prompt the user to enter a major field of study and then return the user's response. Then write a statement to invoke theGetMajorfunction, returning the result to thestrCurrentMajorvariable.
What will be an ideal response?
Private Function GetMajor() As String
Dim strMajor As String
strMajor = InputBox("Please enter your major:", "Major")
Return strMajor
End Function
strCurrentMajor = GetMajor()
Computer Science & Information Technology
You might also like to view...
From the following list, which of the roadblocks is guaranteed to be a deal killer when trying to launch a new forensic division?
a. High cost b. Security requirements c. Departmental politics d. Failure of executive management to see the need
Computer Science & Information Technology
To set the ______ order of items in a custom form, you place the items in the correct order under the Items node in the Object Navigator window.
Fill in the blank(s) with the appropriate word(s).
Computer Science & Information Technology