summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorJean-Pierre Ledure <jp@ledure.be>2018-08-24 16:30:10 +0200
committerJean-Pierre Ledure <jp@ledure.be>2018-08-24 16:30:10 +0200
commit84c02b6d9f2fbe6658b58182f57d60e2bc797016 (patch)
tree45ec4e73f30a8e544cee9e79aed8a53c92edf80b /wizards
parente71ece6a6f5a817120a3866896828e4158fbde79 (diff)
Access2Base - Fix OutputTo of null string
Basic builtin function IsDate returns True for a null-length string. Intercepted to avoid conversion to date giving "00:00:00" Change-Id: Ie917574043ea743e43cd79c5d95d023c8ccab38a
Diffstat (limited to 'wizards')
-rw-r--r--wizards/source/access2base/Database.xba6
1 files changed, 4 insertions, 2 deletions
diff --git a/wizards/source/access2base/Database.xba b/wizards/source/access2base/Database.xba
index cf8617e0b285..72f73cb8daf2 100644
--- a/wizards/source/access2base/Database.xba
+++ b/wizards/source/access2base/Database.xba
@@ -1458,7 +1458,9 @@ Const cstMaxRows = 200
If Not vFieldsBin(i) Then
If bDataArray Then vDataCell = pvData(i, j) Else vDataCell = vData(i, j)
If vDataCell Is Nothing Then vDataCell = Null &apos; Necessary because Null object has not a VarType = vbNull
- If IsDate(vDataCell) And VarType(vDataCell) = vbString Then vDataCell = CDate(vDataCell)
+ If VarType(vDataCell) = vbString Then &apos; Null string gives IsDate = True !
+ If Len(vDataCell) &gt; 0 And IsDate(vDataCell) Then vDataCell = CDate(vDataCell)
+ End If
Select Case VarType(vDataCell)
Case vbEmpty, vbNull
vTdClass() = _AddArray(vTdClass, &quot;null&quot;)
@@ -1563,7 +1565,7 @@ Dim i As Integer, l As Long
lCurrentChar = 1
sOutput = &quot;&quot;
-
+
Do While lCurrentChar &lt;= Len(psString)
&apos; Where is next closest pattern ?
lPattern = Len(psString) + 1