Re: VBScript OCX receive and supply a safeArray of type VT_UI1- problem
"R.Wieser" <[email protected]>
| Newsgroups | alt.comp.os.windows-xp,alt.windows7.general,comp.os.ms-windows.programmer.win32 |
|---|---|
| Organization | A noiseless patient Spider |
| Message-ID | <[email protected]> |
Newyana2, > What JJ said. VBS doesn't do datatypes. I beg to differer. Its Variants are wrappers that can contain a multitude of different data types. Hence the existence of "vartype". > I typically use a character-delimited string that can be converted to > array easily by the caller: I could. But as the MS documentation to SysAllocString contains a warning about autoconversion on it I though it would be better not to use it. It would no doubt bite me in the behind when I could least use it. :-\ > If you want to return an array then you have to convert each array member > individually. While replying to JJ I realized that if the problem is the auto-conversion of the SafeArray when its stored into a variant by VBScript I should try and see what happens when I also provide a variant to method #1 so the SafeArray can be stored into it - possibly bypassing the auto-conversion. Regards, Rudy Wieser