Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15711

Trying to break out the contents of a Variant with no luck.

$
0
0
I am trying to debug some old VB6 code and in the process I would like to see what is being sent from one of the dll's via a variant that contains an array. Hope I am describing that correctly.

I have been struggling for many hours so if someone wouldn't mind pointing me in the right direction I would appreciate it.

Coming into a Function is -
Code:

ByVal vTemplate As Variant
Via a Watch it looks likes this.

Name:  rawdata.jpg
Views: 30
Size:  27.9 KB

Specifically I want to see what is in Rawdata

This returns a value of 307 -
Code:

MsgBox (UBound(vTemplate.RawData))
and it is this content that I would like to view at text characters.

I have tried a number of things that have not worked including ;

Code:

MsgBox StrConv(vTemplate.RawData(), vbFromUnicode)
MsgBox CStr(StrConv(vTemplate.RawData(), vbFromUnicode))
MsgBox Str(vTemplate.RawData(1))

also concatenating each element and so on.

Thanks
Attached Images
 

Viewing all articles
Browse latest Browse all 15711

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>