从字符串“”到“日期”的转换无效vb.net

时间:2017-01-03 08:58:15

标签: vb.net

我有以下代码

#/bin/bash

while inotifywait -e close_write /var/www/html/wp-content/QM-Handbuch /01-Inhaltsverzeichnis.doc;

    do       soffice --headless --convert-to pdf /var/www/html/wp-content/QM-Handbuch/01-Inhaltsverzeichnis.doc &&
             sudo mv /var/www/html/wp-content/QM-Handbuch/01-Inhaltsverzeichnis.pdf /var/www/html/wp-content

在运行时此代码中,它给出了错误“从字符串转换”“到'日期'无效”

1 个答案:

答案 0 :(得分:0)

尝试将代码更改为:

 If xrs1.EOF = False Then
        If IsDate (IsDBNull(xrs1(0).Value)) then
             DispName = xrs1(0).Value
         else
             DispName =""
        End If
   End If
相关问题