Description: Any is an alias for Variant primitive data type, Any is not documented Example code: Dim a As Any Sub Main a = 1.25E-15 Print a End Sub Steps to Reproduce: n/a Actual Results: see Basic code example Expected Results: n/a Reproducible: Always User Profile Reset: No Additional Info: Any is a convenient shortcut worth documenting
Moving to NEW
As shown in the link below, ANY is indeed a synonym for VARIANT, as pointed out by Alain (an "alias"). https://opengrok.libreoffice.org/xref/core/basic/source/comp/dim.cxx?r=b80069e1#95 The funny thing is that I was unable to find a help page dedicated to Variant. There's a page about Basic variables, but no mention to the Variant type: https://help.libreoffice.org/7.1/en-US/text/sbasic/shared/01020100.html?DbPAR=BASIC#bm_id3149346 The only mention to Variant I could find is here, but not very useful to explain the data type. https://help.libreoffice.org/7.1/en-US/text/sbasic/shared/03103600.html?DbPAR=BASIC#bm_id3143267 My suggestion is to create a few examples in the "Using Variables" help page describing the Variant type and adding a note saying that "Any" is an alias for Variant.
Moving this to Documentation.
As per MS doclink below, one may assume 'Any' to be solely justified for backward compatibility. https://docs.microsoft.com/en-us/dotnet/visual-basic/language-reference/error-messages/bc30828 WIN API calls is the sole situation where I've found 'Any' being used so far: https://help.hcltechsw.com/dom_designer/10.0.1/basic/LSAZ_DECLARE_STATEMENT_EXTERNAL_C_CALLS.html
Rafael Lima committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/help/commit/49937bb740e70e6a244f9f4e9a30b7541815e62e tdf#132325 Improve Variant/Any documentation
Verified as fixed in: https://help.libreoffice.org/7.2/en-US/text/sbasic/shared/01020100.html?DbPAR=BASIC#bm_id3149346