Which of the following shows the correct way to remove leading and trailing spaces from a text box named txtStudentID and assign the result to strStudentID?

a. ```Dim strStudentID as String
strStudentID = txtStudentID
```
b. ```Dim strStudentID as String
strStudentID = txtStudentID.Text
```
c. ```Dim strStudentID as String
strStudentID = RemoveSpaces(txtStudentID.Text)
```
d. ```Dim strStudentID as String
strStudentID = txtStudentID.Text.Trim()
```


d. ```Dim strStudentID as String
strStudentID = txtStudentID.Text.Trim()
```

Computer Science & Information Technology

You might also like to view...

Functions that are not members of a class are called ________ functions.

a. isolated b. global c. universal d. general

Computer Science & Information Technology

A(n) ____________________ consists of rows and columns that form cells, and is used to organize information in a document.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

The ____ tier is a tier within the three-tier structure into which programs are divided.

A. Presentation B. Records C. Business D. Persistence

Computer Science & Information Technology

An asymmetric encryption key that does have to be protected.

What will be an ideal response?

Computer Science & Information Technology