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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.