summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorJean-Pierre Ledure <jp@ledure.be>2016-11-30 14:04:06 +0100
committerJean-Pierre Ledure <jp@ledure.be>2017-01-12 11:40:49 +0100
commit53d261f2ff92d3da5655f729b433a36b4ea2733c (patch)
treee96298ae1a58ba0a5791ad43fd1fcd743487081b /wizards
parent076084a71758fcdc2eca6099d3ec8bd262e7e46b (diff)
Access2Base - Avoid use of outdated routines
in getObject, getValue and setValue functions Change-Id: I98ff54bf62cfb34218d1fdb43fb37ba21846b068
Diffstat (limited to 'wizards')
-rw-r--r--wizards/source/access2base/PropertiesGet.xba7
-rw-r--r--wizards/source/access2base/PropertiesSet.xba7
2 files changed, 8 insertions, 6 deletions
diff --git a/wizards/source/access2base/PropertiesGet.xba b/wizards/source/access2base/PropertiesGet.xba
index 273617ca9ab8..7522fe94439d 100644
--- a/wizards/source/access2base/PropertiesGet.xba
+++ b/wizards/source/access2base/PropertiesGet.xba
@@ -461,7 +461,7 @@ Dim oDoc As Object
Case OBJFORM, OBJSUBFORM, OBJCONTROL, OBJDIALOG
vCurrentObject = vCurrentObject.Controls(sComponents(iCurrentIndex))
End Select
- If sCurrentProperty &lt;&gt; &quot;&quot; Then vCurrentObject = PropertiesGet._getProperty(vCurrentObject, sCurrentProperty)
+ If sCurrentProperty &lt;&gt; &quot;&quot; Then vCurrentObject = vCurrentObject.getProperty(sCurrentProperty)
Next iCurrentIndex
Set getObject = vCurrentObject
@@ -714,10 +714,11 @@ Dim vItem As Variant, sProperty As String
Set vItem = getObject(pvObject)
sProperty = Utils._FinalProperty(pvObject)
If sProperty = &quot;&quot; Then sProperty = &quot;Value&quot; &apos; Default value if final property in shortcut is absent
- getValue = PropertiesGet._getProperty(vItem, sProperty)
+ getValue = vItem.getProperty(sproperty)
Utils._ResetCalledSub(&quot;getValue&quot;)
Else
- getValue = PropertiesGet._getProperty(pvObject, &quot;Value&quot;)
+ Set vItem = pvObject
+ getValue = vItem.getProperty(&quot;Value&quot;)
End If
End Function &apos; getValue
diff --git a/wizards/source/access2base/PropertiesSet.xba b/wizards/source/access2base/PropertiesSet.xba
index cb480686842e..db72b5f3d710 100644
--- a/wizards/source/access2base/PropertiesSet.xba
+++ b/wizards/source/access2base/PropertiesSet.xba
@@ -334,13 +334,14 @@ Dim vItem As Variant, sProperty As String
If IsMissing(pvObject) Or IsMissing(pvValue) Or IsEmpty(pvObject) Then Call _TraceArguments(&quot;setValue&quot;)
If VarType(pvObject) = vbString Then
Utils._SetCalledSub(&quot;setValue&quot;)
- vItem = getObject(pvObject)
+ Set vItem = getObject(pvObject)
sProperty = Utils._FinalProperty(pvObject)
If sProperty = &quot;&quot; Then sProperty = &quot;Value&quot;
- setValue = PropertiesSet._setProperty(vItem, sProperty, pvValue)
+ setValue = vItem.setProperty(sProperty, pvValue)
Utils._ResetCalledSub(&quot;setValue&quot;)
Else
- setValue = PropertiesSet._setProperty(pvObject, &quot;Value&quot;, pvValue)
+ Set vItem = pvObject
+ setValue = vItem.setProperty(&quot;Value&quot;, pvValue)
End If
End Function &apos; setValue