| Summary: | Basic: Any keyword is not documented | ||
|---|---|---|---|
| Product: | LibreOffice | Reporter: | Alain Romedenne <alain.romedenne> |
| Component: | Documentation | Assignee: | Not Assigned <libreoffice-bugs> |
| Status: | VERIFIED FIXED | ||
| Severity: | enhancement | CC: | andreas.heinisch, himajin100000, olivier.hallot, rafael.palma.lima, xiscofauli |
| Priority: | medium | Keywords: | skillDocumentation, skillLibreOfficeBASIC |
| Version: | Inherited From OOo | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | target:7.2.0 | ||
| Crash report or crash signature: | Regression By: | ||
| Bug Depends on: | |||
| Bug Blocks: | 80430, 127592, 127597 | ||
|
Description
Alain Romedenne
2020-04-22 13:21:02 UTC
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 |