What's wrong with this code?

public Sub main()
Dim pb as PropertyBag
Dim ar() as Byte
Dim tx as string

tx = "stuff"

set pb = new PropertyBag

ar = tx

pb.Contents = ar 'error 5 in ejecution time ¿Why?

End Sub




Thans in advance!