Bug 140446 - [LOCALHELP] Document BASIC constants
Summary: [LOCALHELP] Document BASIC constants
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
7.2.0.0.alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:7.3.0
Keywords:
Depends on:
Blocks: HelpGaps-NewFeatures Macro-Documentation 84675
  Show dependency treegraph
 
Reported: 2021-02-16 13:53 UTC by Olivier Hallot
Modified: 2021-06-21 18:41 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
List of undocumented basic constants (33.15 KB, application/pdf)
2021-02-16 14:21 UTC, Olivier Hallot
Details
Documentation Status of Constants (22.81 KB, application/vnd.oasis.opendocument.spreadsheet)
2021-02-16 21:38 UTC, Rafael Lima
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Hallot 2021-02-16 13:53:32 UTC
This is a follow up of bug#84675.

Document BASIC constants as shown in the attachment:

https://bug-attachments.documentfoundation.org/attachment.cgi?id=133083

For example constant MB_ABORTRETRYIGNORE

Sub Main
   MsgBox "Really?", MB_ABORTRETRYIGNORE
End Sub

Page to touch: sbasic/shared/03040000.xhp

See
https://helponline.libreoffice.org/7.2/en-US/text/sbasic/shared/03040000.html?&DbPAR=WRITER&System=UNIX

Note: likely to be a table with many localize="false" attributes.
NOte2: some constants already documented in page.
Comment 1 Alain Romedenne 2021-02-16 14:16:19 UTC
MsgBox constants to incorporate are present in:
https://helponline.libreoffice.org/7.2/en-US/text/sbasic/shared/03010101.html?DbPAR=BASIC
Comment 2 Olivier Hallot 2021-02-16 14:21:44 UTC
Created attachment 169783 [details]
List of undocumented basic constants
Comment 3 Alain Romedenne 2021-02-16 14:34:23 UTC
VatType Basic missing constants are available in
https://help.libreoffice.org/7.2/en-US/text/sbasic/shared/03103600.xhp

VarType VBA missing constants are available from  
https://opengrok.libreoffice.org/xref/core/oovbaapi/ooo/vba/VbVarType.idl
and being patched in https://gerrit.libreoffice.org/c/core/+/109964

Many others are available from Access2Base.acConstants but I doubt they've been incorporated in Basic/QA so far...
Comment 4 Rafael Lima 2021-02-16 21:38:34 UTC
Created attachment 169793 [details]
Documentation Status of Constants

Considering the constants originally attached, I compiled a list of the constants that have already been documented in the Help system.

However, for those that have not been documented yet, I'm not so sure if there's a use case for them in Basic scripting.
Comment 5 Xisco Faulí 2021-03-30 11:32:29 UTC
Moving to NEW
Comment 6 Commit Notification 2021-06-21 17:52:44 UTC
Olivier Hallot committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/help/commit/23b0b440515592c9b9ed2fe8e64783ea55375375

tdf#140446 VBA constants for variable type