Forum Discussion
mesg2anil
14 years agoRegular Contributor
Hi Amit,
As you suggested, I modified accordingly in the code shown below... but it is erroring out saying "Wrong number of arguments or invalid property assignment: 'aqConvert.DateTimeToFormatStr'" Any thing you see wrong in the below code?
Sub SaveResults()
Dim FileName
'Obtain the current date and time
NowValue = aqDateTime.Now
DatenTime = aqConvert.DateTimeToFormatStr(NowValue)
'Write log file to folder
FileName = Project.ConfigPath &"\Log\Exported Log Report\" &DatenTime &"anil.mht"
Log.SaveResultsAs Filename, 2
Log.Message FileName
Log.Message NowValue &" : " &DatenTime
End Sub
As you suggested, I modified accordingly in the code shown below... but it is erroring out saying "Wrong number of arguments or invalid property assignment: 'aqConvert.DateTimeToFormatStr'" Any thing you see wrong in the below code?
Sub SaveResults()
Dim FileName
'Obtain the current date and time
NowValue = aqDateTime.Now
DatenTime = aqConvert.DateTimeToFormatStr(NowValue)
'Write log file to folder
FileName = Project.ConfigPath &"\Log\Exported Log Report\" &DatenTime &"anil.mht"
Log.SaveResultsAs Filename, 2
Log.Message FileName
Log.Message NowValue &" : " &DatenTime
End Sub