-
Notifications
You must be signed in to change notification settings - Fork 2
/
menu_defn_in_code.bas
33 lines (29 loc) · 1.25 KB
/
menu_defn_in_code.bas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Attribute VB_Name = "menu_definition"
Option Explicit
' This file is part of the Minnesota Population Center's VBA libraries project.
' For copyright and licensing information, see the NOTICE and LICENSE files
' in this project's top-level directory, and also on-line at:
' https://github.com/mnpopcenter/vba-libs
Const MENU_DEFINITION_STR = _
"Foo | FooMacro" _
& vbLf & "Bar | BarMacro" _
& vbLf & "---------" _
& vbLf & "Compression ==>" _
& vbLf & " Normal | CompressData ""Normal""" _
& vbLf & " Fast | CompressData ""Fast""" _
& vbLf & " Best | CompressData ""Best""" _
& vbLf & "" _
& vbLf & "-------" _
& vbLf & "Version | DisplayVersion" _
& vbLf & "" _
& vbLf & "" _
& vbLf & "# (enabled only in Development mode)" _
& vbLf & "#dev>----------------------------------" _
& vbLf & "#dev>Developer Tools ==>" _
& vbLf & "#dev> Export VBA code | ExportVbaCode" _
& vbLf & "#dev> ------------------------" _
& vbLf & "#dev> Build Production version | BuildProductionVersion"
Public Function LoadIntoArray(ByRef definition() As String) As Boolean
definition = Split(MENU_DEFINITION_STR, vbLf)
LoadIntoArray = True
End Function