我在 UFT/QTP 14.00 中有这个问题。我想使用函数中的属性来编写日志文件,但在运行操作时返回此错误。
这是我的代码:
Function Escrito
'Function in VBS
'Habilitamos la creacion y modificacion de archivos
'Enable Create and update files
Set fso=createobject("Scripting.FileSystemObject")
set Stream = fso.CreateTextFile("C:\Users\HCCMD\Documents\test.txt")
Escrito = Stream
End Function
我想使用Escrito().write "Hola mundo"
例如。