i want to convert string into byte....this can be done in vb.net..can somebody help me in doing this in vb6.0..here the simple code..
Private Sub Form_Load()
Dim str1 As String
Dim i As Byte
i = CByte(Val(str1))
Text1.Text = i
End Sub
but this code still not able to convert string into byte....and still giving type mismatch error....i m unable to solve this small problem
amby