Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
salezian
Creator
Creator

vbscript function

  Hi

I'm trying to put into script editor vb function:

public function DeleteFile(filePath)

   Set objFSO = CreateObject("Scripting.FileSystemObject")

   Dim retVal 'as Boolean

        If objFSO.FileExists(filePath) Then

           Call objFSO.DeleteFile(filePath)

           retVal = true

        Else

           Set objFSO = nothing

           retVal = false

       End If

   DeleteFile = retVal

end function

next i'm trying to use it using following statement:

Let vNoOfFiles=countFiles('$(vFlatFilesPath)');

when I run reload I get unknown statement error.

I would be grateful for any help.

Regards.

Labels (1)
0 Replies