CType string To Byte
I am working through the Time Tracker application and have just come across what seems to be a problem.
The code in Chapter 7 shows the following line of code in several procedures:
objData.AddParameter("@SequenceNumber", _
Data.OleDb.OleDbType.UnsignedTinyInt, 1, _
CType(txtSequenceNumber.Text, Byte))
When I run the project I get this error:
Conversion from String "" to 'Byte' is not valid.
The code in my project is exactly like the code in the example and it doesn't run either.
Does anyone have the answer?
|