Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: byte Arrays converted to a string


Message #1 by "Philip.Ware" <Philip.Ware@e...> on Thu, 17 Aug 2000 11:00:01 +0100
If I use the join() function it returns back:-

Invalid Procedure Call or Argument

My code:	(inet is the internet tranfer control)

dim bdata() as byte
dim webpage as string

bdata() = Inet.OpenURL("www.microsoft.com/", icbyteArray)
webpage = Join(bdata)

Does the Join Function only work with strings? As this array is a byte
array....

Thanks,
Phil.

> -----Original Message-----
> From: Mark Everest [mailto:Mark.Everest@t...]
> Sent: 18 August 2000 15:56
> To: professional vb
> Subject: [pro_vb] RE: byte Arrays converted to a string
> 
> 
> Use the Join() function
> 
> 
> -----Original Message-----
> From: Philip.Ware [mailto:Philip.Ware@e...]
> Sent: 18 August 2000 15:21
> To: professional vb
> Subject: [pro_vb] RE: byte Arrays converted to a string
> 
> 
> Hi,
> 
> 
> Anybody know how to convert a Byte array to a string without 
> having to do
> something like this?
> 
> dim page as string
> dim bdata() as byte
> 
> for i=0 to ubound(bdata)
> 	page = page + chr(bdata(i))
> next i
> 
> Thanks,
> Philip Ware.
> 
> 

  Return to Index