summaryrefslogtreecommitdiff
path: root/wizards/source/access2base/Control.xba
diff options
context:
space:
mode:
authorJean-Pierre Ledure <jp@ledure.be>2019-06-13 14:42:49 +0200
committerJean-Pierre Ledure <jp@ledure.be>2019-06-13 14:46:27 +0200
commit28dcdd5f6c2204718519e215d2ef5466743536c7 (patch)
tree45cde6c4ea79d84dd68ffb6675cb3003286c3640 /wizards/source/access2base/Control.xba
parent5c7fa1518e9ca8921d2d6c2a4b09a8a6fb938804 (diff)
Access2Base - Robustness changes
Addition of _This address in every Basic object Default parameters reviewed when ambiguous Typo's corrections
Diffstat (limited to 'wizards/source/access2base/Control.xba')
-rw-r--r--wizards/source/access2base/Control.xba5
1 files changed, 5 insertions, 0 deletions
diff --git a/wizards/source/access2base/Control.xba b/wizards/source/access2base/Control.xba
index 3a41609ef48e..39afaee804a3 100644
--- a/wizards/source/access2base/Control.xba
+++ b/wizards/source/access2base/Control.xba
@@ -16,6 +16,7 @@ REM --- CLASS ROOT FIELDS ---
REM -----------------------------------------------------------------------------------------------------------------------
Private _Type As String &apos; Must be CONTROL
+Private _This As Object &apos; Workaround for absence of This builtin function
Private _ImplementationName As String
Private _ClassId As Integer
Private _ParentType As String &apos; One of CTLPARENTISxxxx constants
@@ -38,6 +39,7 @@ REM --- CONSTRUCTORS / DESTRUCTORS ---
REM -----------------------------------------------------------------------------------------------------------------------
Private Sub Class_Initialize()
_Type = OBJCONTROL
+ Set _This = Nothing
_ClassId = -1
_ParentType = &quot;&quot;
_Shortcut = &quot;&quot;
@@ -765,6 +767,7 @@ Dim j As Integer, oView As Object
If IsMissing(pvIndex) Then &apos; No argument, return Collection pseudo-object
Set oCounter = New Collect
+ Set oCounter._This = oCounter
oCounter._CollType = COLLCONTROLS
oCounter._ParentType = OBJCONTROL
oCounter._ParentName = _Shortcut
@@ -778,6 +781,7 @@ Dim j As Integer, oView As Object
&apos; Start building the ocControl object
&apos; Determine exact name
Set ocControl = New Control
+ Set ocControl._This = ocControl
ocControl._ParentType = CTLPARENTISGRID
sParentShortcut = _Shortcut
sControls() = ControlModel.getElementNames()
@@ -1512,6 +1516,7 @@ Dim oControlEvents As Object, sEventName As String
Case UCase(&quot;Form&quot;)
Set ofSubForm = New SubForm &apos; Start building the SUBFORM object
With ofSubForm
+ Set ._This = ofSubForm
Set .DatabaseForm = ControlModel
._Name = _Name
._Shortcut = _Shortcut &amp; &quot;.Form&quot;