Bug 140446

Summary: [LOCALHELP] Document BASIC constants
Product: LibreOffice Reporter: Olivier Hallot <olivier.hallot>
Component: BASICAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: alain.romedenne, himajin100000, xiscofauli
Priority: medium    
Version: 7.2.0.0.alpha0+   
Hardware: All   
OS: All   
Whiteboard: target:7.3.0
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 80430, 127597, 84675    
Attachments: List of undocumented basic constants
Documentation Status of Constants

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