Conversion Problem

Angelan

New member
Joined
Feb 23, 2005
Messages
4
Programming Experience
Beginner
I wanted to convert a String to Byte.. is that possible?
what I did was i got a
Public Sub(ByVal email As String)
then i convert the email by the following method:

Dim
asd AsByte = CByte(email)

anyone knows if this method works?
because i got an error showing:

An unhandled exception of type 'System.InvalidCastException' occurred in microsoft.visualbasic.dll
Additional information: Cast from string "asd@asd.net" to type 'Byte' is not valid.

and the value of asd i found is 0..
why is this so? :confused:
Can someone please help mi? Thks in advance..

 
Back
Top