Regis Posted May 6, 2007 Share Posted May 6, 2007 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 More sharing options...
Regis Posted May 7, 2007 Author Share Posted May 7, 2007 *bump* Link to comment https://forums.phpfreaks.com/topic/50280-strange-variant-type-variable/#findComment-247129 Share on other sites More sharing options...
Regis Posted May 7, 2007 Author Share Posted May 7, 2007 *bump* Link to comment https://forums.phpfreaks.com/topic/50280-strange-variant-type-variable/#findComment-247629 Share on other sites More sharing options...
Regis Posted May 8, 2007 Author Share Posted May 8, 2007 *bump* Link to comment https://forums.phpfreaks.com/topic/50280-strange-variant-type-variable/#findComment-248053 Share on other sites More sharing options...
taith Posted May 8, 2007 Share Posted May 8, 2007 i assume your trying to make them integers... if you just put "(INT)" infront of the value, it forces that change... Link to comment https://forums.phpfreaks.com/topic/50280-strange-variant-type-variable/#findComment-248056 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.