I am trying to determine the type of information present in an any variable and extract it.The problem is I do not know how to use getValue. It returns a void *, but how to I convert it to string or double. Is it as simple as deferencing it??
The code I have below -- need the code for the ???
I am trying to determine the type of information present in an any variable and extract it.The problem is I do not know how to use getValue. It returns a void *, but how to I convert it to string or double. Is it as simple as deferencing it??
The code I have below -- need the code for the ???
saleem145 wrote:What do I if type is "byte" -- I tried to extract it into char but that doesn't work.....Saleem
I can't get it to work straightaway either. BYTE is just a typedef for unsigned char, but if I insert a BYTE into an Any, I then get a valueTypeName of "boolean," which is strange. I can make a one character OUString(BYTE), then insert it into an Any and extract it out again as expected. What exactly do you need to do here?
Please, edit this thread's initial post and add "[Solved]" to the subject line if your problem has been solved.
Apache OpenOffice 4-dev on Xubuntu 14.04