E
Eric Frohmann
I'm trying to maintain a list of forms in my app. How can I test for an
uninitialised array?
Here's my current effort:
Module::
Public GarstOpenForms() As String
Public Sub esInitFormList(bCloseForms As Boolean)
On Error GoTo Err_esInitFormList
'init value - false mean we do not automatically close forms
GbForceFormClose = bCloseForms
If (IsNull(GarstOpenForms())) Then '<<<<<<<
' tried IsNull(GarstOpenForms) - it didn't work either
'initialise the first value
ReDim GarstOpenForms(1)
GarstOpenForms(1) = ""
End If
Exit_esInitFormList:
Exit Sub
Err_esInitFormList:
MsgBox "::esInitFormList:" & Err.Description
Resume Exit_esInitFormList
End Sub
uninitialised array?
Here's my current effort:
Module::
Public GarstOpenForms() As String
Public Sub esInitFormList(bCloseForms As Boolean)
On Error GoTo Err_esInitFormList
'init value - false mean we do not automatically close forms
GbForceFormClose = bCloseForms
If (IsNull(GarstOpenForms())) Then '<<<<<<<
' tried IsNull(GarstOpenForms) - it didn't work either
'initialise the first value
ReDim GarstOpenForms(1)
GarstOpenForms(1) = ""
End If
Exit_esInitFormList:
Exit Sub
Err_esInitFormList:
MsgBox "::esInitFormList:" & Err.Description
Resume Exit_esInitFormList
End Sub