Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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.

0 Replies