Hi folks
in a function, I receive a variant
Is it possible to analyze the type?
I've found the instruction IsObject but nothing to test whether it's a boolean, an integer or a string
[Solved] Get exact type for a variant
[Solved] Get exact type for a variant
Last edited by Mr.Dandy on Fri Dec 13, 2024 9:24 am, edited 1 time in total.
OpenOffice 4.1.12 - Windows 10
Re: Get exact type for a variant
vartype(variable)
Windows 10, Openoffice 4.1.11, LibreOffice 7.4.0.3 (x64)
Re: [Solved] Get exact type for a variant
The answer by @JeJe shows how to get the most detailed information, but you need to interpret it based on code numbers.
You can also use the function Typename(variable). In case variable is an array, a pair of parentheses is appended to the returned name.
On Windows 10: LibreOffice 25.2.2 and older versions, PortableOpenOffice 4.1.7 and older, StarOffice 5.2
---
Lupp from München
---
Lupp from München