AlexFeddes
Programmer
Hello,
I would like to define text and values 'globally' so that they can be used throughout all modules.
Below is an example of what I want.
Preference would be to define MB1 and MB2 in an outside msgbox.ini file (C:\msgbox.ini) and let the module call for that
'[MsgBox]
'MB1 = "Test 1"
'MB2 = "Test 2"
Function ACF(MsgBox) As Boolean
'This doesn't work yet
MB1 = "Test 1" 'This line I want to get from a global variable so that it is written in the Function, but called up in the various underlying modules
MB2 = "Test 2"
End Function
Sub AA01()
MB1 = "Test 1" 'This line I actually want to get from a global variable (*.ini file) instead of declaring them in each module seperately
MsgBox MB1
End Sub
Sub AA02()
MsgBox MB2
End Sub
Sub AA03()
MsgBox MB1
End Sub
Thank you for looking into this.
Alex
I would like to define text and values 'globally' so that they can be used throughout all modules.
Below is an example of what I want.
Preference would be to define MB1 and MB2 in an outside msgbox.ini file (C:\msgbox.ini) and let the module call for that
'[MsgBox]
'MB1 = "Test 1"
'MB2 = "Test 2"
Function ACF(MsgBox) As Boolean
'This doesn't work yet
MB1 = "Test 1" 'This line I want to get from a global variable so that it is written in the Function, but called up in the various underlying modules
MB2 = "Test 2"
End Function
Sub AA01()
MB1 = "Test 1" 'This line I actually want to get from a global variable (*.ini file) instead of declaring them in each module seperately
MsgBox MB1
End Sub
Sub AA02()
MsgBox MB2
End Sub
Sub AA03()
MsgBox MB1
End Sub
Thank you for looking into this.
Alex