Jump to content

Strange Variant type variable


Regis

Recommended Posts

Hello.

I have received a variant type variable via COM and I am having difficulties doing anything with it. It sould be one-dimensional array of double (real) numbers.

 

variant_get_type returns 8197, which probably means 8197 = 8192 + 5 = vt_safeArray + vt_r8 = array of real (found this elsewhere).

 

var_dump() returns "object(variant)#3 (0) { }". I don't know what this means exactly, looks like an empty object of some sort...

 

print_r returns "variant Object"

 

print() returns "Error: Object of class variant could not be converted to string", which is strange, since I thought that any Variant could be converted to string.

 

So what shall I do to get to my numbers?

Any help is appreciated.

 

P.S.: Sorry for my English, it does not get any better after 22 hours of (futile) work. :-[

Link to comment
https://forums.phpfreaks.com/topic/50280-strange-variant-type-variable/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.