This is telling you that you need a Variant containing Byte array subtype data. However VBScript has no way of creating or manipulating this subtype. It must be obtained indirectly, generally via properties or methods of external objects.
For example you can call ReadBin and get back such a Variant value, and then WriteBin it to another file. A nice way to work with these in Desktop VBScript is via the ADODB.Stream object, but this doesn't exist in WinCE/WinMobile. I generally fall back on the newObjects components for manipulating Byte arrays via Stream objects on CE. --- In [email protected], "dh_xl_ns" <dh_xl...@...> wrote: > > I am having problems writing back Binary data using the WRITEBIN method of > the file control. The system reports the error EXPECTING A SAFE ARRAY OF TYPE > VT_UL1 and does not write back the data. On MSDN I have found the structure > that defines a Safe Array, and tried to put it at the start of the NS Basic > array but no joy. Perhaps I should pass the address of the structure? But I > am not sure how. Can anyone help? > -- You received this message because you are subscribed to the Google Groups "nsb-ce" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nsb-ce?hl=en.
