diff options
-rw-r--r-- | wizards/source/access2base/Application.xba | 4 | ||||
-rw-r--r-- | wizards/source/access2base/Control.xba | 14 | ||||
-rw-r--r-- | wizards/source/access2base/DataDef.xba | 8 | ||||
-rw-r--r-- | wizards/source/access2base/Database.xba | 8 | ||||
-rw-r--r-- | wizards/source/access2base/Dialog.xba | 9 | ||||
-rw-r--r-- | wizards/source/access2base/Event.xba | 8 | ||||
-rw-r--r-- | wizards/source/access2base/Field.xba | 12 | ||||
-rw-r--r-- | wizards/source/access2base/Form.xba | 10 | ||||
-rw-r--r-- | wizards/source/access2base/OptionGroup.xba | 10 | ||||
-rw-r--r-- | wizards/source/access2base/Recordset.xba | 7 | ||||
-rw-r--r-- | wizards/source/access2base/SubForm.xba | 10 | ||||
-rw-r--r-- | wizards/source/access2base/Utils.xba | 4 |
12 files changed, 51 insertions, 53 deletions
diff --git a/wizards/source/access2base/Application.xba b/wizards/source/access2base/Application.xba index 037d54b5091e..46cb24afac2d 100644 --- a/wizards/source/access2base/Application.xba +++ b/wizards/source/access2base/Application.xba @@ -734,13 +734,13 @@ Public Function Controls(ByVal Optional pvObject As Variant, Optional ByVal pvIn ' If no pvIndex argument, return a Collection type If _ErrorHandler() Then On Local Error Goto Error_Function -Dim vObject As Object, vEMPTY As variant +Dim vObject As Object Const cstThisSub = "Controls" Utils._SetCalledSub(cstThisSub) If IsMissing(pvObject) Then Call _TraceArguments() If IsNull(pvObject) Or IsEmpty(pvObject) Then Call _TraceArguments() - Controls = vEMPTY + Controls = EMPTY If VarType(pvObject) = vbString Then Set vObject = Forms(pvObject) diff --git a/wizards/source/access2base/Control.xba b/wizards/source/access2base/Control.xba index 9319895a50af..859e44601328 100644 --- a/wizards/source/access2base/Control.xba +++ b/wizards/source/access2base/Control.xba @@ -1381,10 +1381,10 @@ REM ---------------------------------------------------------------------------- Private Function _PropertyGet(ByVal psProperty As String, ByVal Optional pvIndex As Variant) As Variant ' Return property value of the psProperty property name -Dim vEMPTY As Variant, iArg As Integer +Dim iArg As Integer If _ErrorHandler() Then On Local Error Goto Error_Function Utils._SetCalledSub("Control.get" & psProperty) - _PropertyGet = vEMPTY + _PropertyGet = EMPTY 'Check Index argument Dim iArgNr As Integer @@ -1759,7 +1759,7 @@ Dim vSelection As Variant, sSelectedText As String If Not Utils._hasUNOProperty(ControlModel, "StringItemList") Then Goto Trace_Error If Not Utils._hasUNOProperty(ControlModel, "SelectedItems") Then Goto Trace_Error If UBound(ControlModel.SelectedItems) > 0 Then ' Several items selected - vGet = vEMPTY ' Listbox has no value, only an array of Selected flags to identify values + vGet = EMPTY ' Listbox has no value, only an array of Selected flags to identify values Else ' Mono selection Select Case _ParentType Case CTLPARENTISDIALOG @@ -1768,7 +1768,7 @@ Dim vSelection As Variant, sSelectedText As String If lListIndex > -1 And lListIndex <= UBound(ControlModel.StringItemList) Then vGet = ControlModel.StringItemList(lListIndex) Else - vGet = vEMPTY + vGet = EMPTY End If End If Case Else @@ -1838,15 +1838,15 @@ Exit_Function: Exit Function Trace_Error: TraceError(TRACEWARNING, ERRPROPERTY, Utils._CalledSub(), 0, , psProperty) - _PropertyGet = vEMPTY + _PropertyGet = EMPTY Goto Exit_Function Trace_Error_Index: TraceError(TRACEFATAL, ERRINDEXVALUE, Utils._CalledSub(), 0, 1, psProperty) - _PropertyGet = vEMPTY + _PropertyGet = EMPTY Goto Exit_Function Error_Function: TraceError(TRACEABORT, Err, "Control._PropertyGet", Erl) - _PropertyGet = vEMPTY + _PropertyGet = EMPTY GoTo Exit_Function End Function ' _PropertyGet V0.9.1 diff --git a/wizards/source/access2base/DataDef.xba b/wizards/source/access2base/DataDef.xba index df416c09d9f9..0b8705555d43 100644 --- a/wizards/source/access2base/DataDef.xba +++ b/wizards/source/access2base/DataDef.xba @@ -477,8 +477,8 @@ Private Function _PropertyGet(ByVal psProperty As String) As Variant Dim cstThisSub As String cstThisSub = Utils._PCase(_Type) Utils._SetCalledSub(cstThisSub & ".get" & psProperty) -Dim vEMPTY As Variant, sSql As String, sVerb As String, iType As Integer - _PropertyGet = vEMPTY +Dim sSql As String, sVerb As String, iType As Integer + _PropertyGet = EMPTY If Not hasProperty(psProperty) Then Goto Trace_Error Select Case UCase(psProperty) @@ -517,11 +517,11 @@ Exit_Function: Exit Function Trace_Error: TraceError(TRACEWARNING, ERRPROPERTY, Utils._CalledSub(), 0, , psProperty) - _PropertyGet = vEMPTY + _PropertyGet = EMPTY Goto Exit_Function Error_Function: TraceError(TRACEABORT, Err, cstThisSub & "._PropertyGet", Erl) - _PropertyGet = vEMPTY + _PropertyGet = EMPTY GoTo Exit_Function End Function ' _PropertyGet diff --git a/wizards/source/access2base/Database.xba b/wizards/source/access2base/Database.xba index 01c56a70e480..4d7513e8ad93 100644 --- a/wizards/source/access2base/Database.xba +++ b/wizards/source/access2base/Database.xba @@ -1657,8 +1657,8 @@ Private Function _PropertyGet(ByVal psProperty As String) As Variant If _ErrorHandler() Then On Local Error Goto Error_Function Utils._SetCalledSub("Database.get" & psProperty) -Dim vEMPTY As Variant - _PropertyGet = vEMPTY + + _PropertyGet = EMPTY Select Case UCase(psProperty) Case UCase("Connect") @@ -1679,11 +1679,11 @@ Exit_Function: Exit Function Trace_Error: TraceError(TRACEFATAL, ERRPROPERTY, Utils._CalledSub(), 0, , psProperty) - _PropertyGet = vEMPTY + _PropertyGet = EMPTY Goto Exit_Function Error_Function: TraceError(TRACEABORT, Err, "Database._PropertyGet", Erl) - _PropertyGet = vEMPTY + _PropertyGet = EMPTY GoTo Exit_Function End Function ' _PropertyGet diff --git a/wizards/source/access2base/Dialog.xba b/wizards/source/access2base/Dialog.xba index 0fafbd9daaa9..a0b23eab60de 100644 --- a/wizards/source/access2base/Dialog.xba +++ b/wizards/source/access2base/Dialog.xba @@ -565,8 +565,7 @@ Private Function _PropertyGet(ByVal psProperty As String) As Variant Utils._SetCalledSub("Dialog.get" & psProperty) 'Execute -Dim vEMPTY As Variant - _PropertyGet = vEMPTY + _PropertyGet = EMPTY Select Case UCase(psProperty) Case UCase("Name"), UCase("IsLoaded") @@ -599,15 +598,15 @@ Exit_Function: Exit Function Trace_Error: TraceError(TRACEWARNING, ERRPROPERTY, Utils._CalledSub(), 0, 1, psProperty) - _PropertyGet = vEMPTY + _PropertyGet = EMPTY Goto Exit_Function Trace_Error_Dialog: TraceError(TRACEFATAL, ERRDIALOGNOTSTARTED, Utils._CalledSub(), 0, 1, _Name) - _PropertyGet = vEMPTY + _PropertyGet = EMPTY Goto Exit_Function Error_Function: TraceError(TRACEABORT, Err, "Dialog._PropertyGet", Erl) - _PropertyGet = vEMPTY + _PropertyGet = EMPTY GoTo Exit_Function End Function ' _PropertyGet diff --git a/wizards/source/access2base/Event.xba b/wizards/source/access2base/Event.xba index de6aa2a6e4c6..32ec17cc3937 100644 --- a/wizards/source/access2base/Event.xba +++ b/wizards/source/access2base/Event.xba @@ -420,8 +420,8 @@ Private Function _PropertyGet(ByVal psProperty As String) As Variant If _ErrorHandler() Then On Local Error Goto Error_Function Utils._SetCalledSub("Event.get" & psProperty) -Dim vEMPTY As Variant - _PropertyGet = vEMPTY + + _PropertyGet = EMPTY Select Case UCase(psProperty) Case UCase("ButtonLeft") @@ -486,11 +486,11 @@ Exit_Function: Trace_Error: ' Errors are not displayed to avoid display infinite cycling TraceError(TRACEWARNING, ERRPROPERTY, Utils._CalledSub(), 0, False, psProperty) - _PropertyGet = vEMPTY + _PropertyGet = EMPTY Goto Exit_Function Error_Function: TraceError(TRACEABORT, Err, "Event._PropertyGet", Erl) - _PropertyGet = vEMPTY + _PropertyGet = EMPTY GoTo Exit_Function End Function ' _PropertyGet V1.1.0 </script:module>
\ No newline at end of file diff --git a/wizards/source/access2base/Field.xba b/wizards/source/access2base/Field.xba index d08bcfbd37d6..35d5bc6bddb8 100644 --- a/wizards/source/access2base/Field.xba +++ b/wizards/source/access2base/Field.xba @@ -398,12 +398,12 @@ Dim cstThisSub As String If Not hasProperty(psProperty) Then Goto Trace_Error -Dim vEMPTY As Variant, bCond1 As Boolean, bCond2 As Boolean, vValue As Variant, oValue As Object, sValue As String +Dim bCond1 As Boolean, bCond2 As Boolean, vValue As Variant, oValue As Object, sValue As String Dim oSize As Object, lSize As Long, bNullable As Boolean, bNull As Boolean Const cstMaxTextLength = 65535 Const cstMaxBinlength = 2 * 65535 - _PropertyGet = vEMPTY + _PropertyGet = EMPTY Select Case UCase(psProperty) Case UCase("DataType") @@ -490,7 +490,7 @@ Const cstMaxBinlength = 2 * 65535 End If oSize.closeInput() Else - _PropertyGet = vEMPTY + _PropertyGet = EMPTY End If Case UCase("Name") _PropertyGet = _Name @@ -594,15 +594,15 @@ Exit_Function: Exit Function Trace_Error: TraceError(TRACEWARNING, ERRPROPERTY, Utils._CalledSub(), 0, , psProperty) - _PropertyGet = vEMPTY + _PropertyGet = EMPTY Goto Exit_Function Trace_Length: TraceError(TRACEFATAL, ERROVERFLOW, Utils._CalledSub(), 0, , Array(lSize, "GetChunk")) - _PropertyGet = vEMPTY + _PropertyGet = EMPTY Goto Exit_Function Error_Function: TraceError(TRACEABORT, Err, cstThisSub, Erl) - _PropertyGet = vEMPTY + _PropertyGet = EMPTY GoTo Exit_Function End Function ' _PropertyGet V1.1.0 diff --git a/wizards/source/access2base/Form.xba b/wizards/source/access2base/Form.xba index f890214929e0..66962d1c3de5 100644 --- a/wizards/source/access2base/Form.xba +++ b/wizards/source/access2base/Form.xba @@ -845,10 +845,10 @@ Private Function _PropertyGet(ByVal psProperty As String) As Variant Utils._SetCalledSub("Form.get" & psProperty) 'Execute -Dim oDatabase As Object, vBookmark As Variant, vEMPTY As Variant +Dim oDatabase As Object, vBookmark As Variant Dim i As Integer, oObject As Object - _PropertyGet = vEMPTY + _PropertyGet = EMPTY Select Case UCase(psProperty) Case UCase("Name"), UCase("IsLoaded") @@ -937,15 +937,15 @@ Exit_Function: Exit Function Trace_Error: TraceError(TRACEWARNING, ERRPROPERTY, Utils._CalledSub(), 0, 1, psProperty) - _PropertyGet = vEMPTY + _PropertyGet = EMPTY Goto Exit_Function Trace_Error_Form: TraceError(TRACEFATAL, ERRFORMNOTOPEN, Utils._CalledSub(), 0, 1, _Name) - _PropertyGet = vEMPTY + _PropertyGet = EMPTY Goto Exit_Function Error_Function: TraceError(TRACEABORT, Err, "Form._PropertyGet", Erl) - _PropertyGet = vEMPTY + _PropertyGet = EMPTY GoTo Exit_Function End Function ' _PropertyGet diff --git a/wizards/source/access2base/OptionGroup.xba b/wizards/source/access2base/OptionGroup.xba index a1177aec4399..180591ae5b76 100644 --- a/wizards/source/access2base/OptionGroup.xba +++ b/wizards/source/access2base/OptionGroup.xba @@ -216,9 +216,9 @@ Private Function _PropertyGet(ByVal psProperty As String) As Variant Utils._SetCalledSub("OptionGroup.get" & psProperty) 'Execute -Dim oDatabase As Object, vBookmark As Variant, vEMPTY As Variant +Dim oDatabase As Object, vBookmark As Variant Dim iValue As Integer, i As Integer - _PropertyGet = vEMPTY + _PropertyGet = EMPTY Select Case UCase(psProperty) Case UCase("Count") _PropertyGet = _Count @@ -244,15 +244,15 @@ Exit_Function: Exit Function Trace_Error: TraceError(TRACEWARNING, ERRPROPERTY, Utils._CalledSub(), 0, 1, psProperty) - _PropertyGet = vEMPTY + _PropertyGet = EMPTY Goto Exit_Function Trace_Error_Index: TraceError(TRACEFATAL, ERRINDEXVALUE, Utils._CalledSub(), 0, 1, psProperty) - _PropertyGet = vEMPTY + _PropertyGet = EMPTY Goto Exit_Function Error_Function: TraceError(TRACEABORT, Err, "OptionGroup._PropertyGet", Erl) - _PropertyGet = vEMPTY + _PropertyGet = EMPTY GoTo Exit_Function End Function ' _PropertyGet diff --git a/wizards/source/access2base/Recordset.xba b/wizards/source/access2base/Recordset.xba index 81061bdad875..d04f2e6bf382 100644 --- a/wizards/source/access2base/Recordset.xba +++ b/wizards/source/access2base/Recordset.xba @@ -1135,8 +1135,7 @@ Dim cstThisSub As String cstThisSub = "Recordset.get" Utils._SetCalledSub(cstThisSub & psProperty) -Dim vEMPTY As Variant - _PropertyGet = vEMPTY + _PropertyGet = EMPTY Select Case UCase(psProperty) Case UCase("AbsolutePosition") @@ -1203,7 +1202,7 @@ Exit_Function: Exit Function Trace_Error: TraceError(TRACEFATAL, ERRPROPERTY, Utils._CalledSub(), 0, , psProperty) - _PropertyGet = vEMPTY + _PropertyGet = EMPTY Goto Exit_Function Trace_Forward: TraceError(TRACEFATAL, ERRRECORDSETFORWARD, Utils._CalledSub(), 0) @@ -1213,7 +1212,7 @@ Trace_Closed: Goto Exit_Function Error_Function: TraceError(TRACEABORT, Err, cstThisSub & "._PropertyGet", Erl) - _PropertyGet = vEMPTY + _PropertyGet = EMPTY GoTo Exit_Function End Function ' _PropertyGet diff --git a/wizards/source/access2base/SubForm.xba b/wizards/source/access2base/SubForm.xba index 832e8c12fc7e..caa4a2c43ae4 100644 --- a/wizards/source/access2base/SubForm.xba +++ b/wizards/source/access2base/SubForm.xba @@ -570,8 +570,8 @@ Dim iArgNr As Integer End If 'Execute -Dim oDatabase As Object, vBookmark As Variant, vEMPTY As Variant - _PropertyGet = vEMPTY +Dim oDatabase As Object, vBookmark As Variant + _PropertyGet = EMPTY Select Case UCase(psProperty) Case UCase("AllowAdditions") @@ -652,15 +652,15 @@ Exit_Function: Exit Function Trace_Error: TraceError(TRACEWARNING, ERRPROPERTY, Utils._CalledSub(), 0, 1, psProperty) - _PropertyGet = vEMPTY + _PropertyGet = EMPTY Goto Exit_Function Trace_Error_Index: TraceError(TRACEFATAL, ERRINDEXVALUE, Utils._CalledSub(), 0, 1, psProperty) - _PropertyGet = vEMPTY + _PropertyGet = EMPTY Goto Exit_Function Error_Function: TraceError(TRACEABORT, Err, "SubForm._PropertyGet", Erl) - _PropertyGet = vEMPTY + _PropertyGet = EMPTY GoTo Exit_Function End Function ' _PropertyGet diff --git a/wizards/source/access2base/Utils.xba b/wizards/source/access2base/Utils.xba index 668507867369..7367e4e63e59 100644 --- a/wizards/source/access2base/Utils.xba +++ b/wizards/source/access2base/Utils.xba @@ -211,7 +211,7 @@ Public Function _CVar(ByRef psArg As String, ByVal Optional pbStrDate As Boolean ' Return values may of types Array, Long, Double, Date, Boolean, String, Null or Empty ' pbStrDate = True keeps dates as strings -Dim cstEscape1 As String, cstEscape2 As String, vEMPTY As Variant +Dim cstEscape1 As String, cstEscape2 As String cstEscape1 = Chr(14) ' Form feed used as temporary escape character for \\ cstEscape2 = Chr(27) ' ESC used as temporary escape character for \; @@ -242,7 +242,7 @@ Dim sArg As String, vArgs() As Variant, vVars() As Variant, i As Integer ' Usual case Select Case True - Case sArg = "[EMPTY]" : _CVar = vEMPTY + Case sArg = "[EMPTY]" : _CVar = EMPTY Case sArg = "[NULL]" Or sArg = "[VARIANT]" : _CVar = Null Case sArg = "[OBJECT]" : _CVar = Nothing Case sArg = "[TRUE]" : _CVar = True |