I think you should do something like the following
 dim CCNumber() as Char
 CCNumber = ReadCardNumber( CStr(sqlReader.Item
("cardnumber2")).ToCharArray())
 CCNumber is now a Char array which is exactly equivalent to a Byte Array.
 Hope this helps.

 On 10/10/05, looking_for_xyz <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I am getting an error as " Value of type 'Byte' cannot be converted
> to '1-dimensional array of Byte' " from ReadCardNumber(Convert.ToByte
> (sqlReader.Item"cardnumber2"))). What am I doing wrong?
>
>
> CCNumber = ReadCardNumber(Convert.ToByte(sqlReader.Item"cardnumber2")))
>
>
> Public Function ReadCardNumber(ByVal inputInBytes() As Byte) As String
>
> .............
>
> End Function
>
>
>
>
>
>  ------------------------------
> YAHOO! GROUPS LINKS
>
>
>    - Visit your group 
> "AspNetAnyQuestionIsOk<http://groups.yahoo.com/group/AspNetAnyQuestionIsOk>"
>    on the web.
>     - To unsubscribe from this group, send an email to:
>    [EMAIL PROTECTED]<[EMAIL PROTECTED]>
>     - Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>    Service <http://docs.yahoo.com/info/terms/>.
>
>
>  ------------------------------
>



--
Doug Nelson
www.synappnorth.com <http://www.synappnorth.com>


[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 




Reply via email to