Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements
QlikWorld, June 24-25, 2020. Free virtual event for DI and DA gurus. Register Today
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Creator III
Creator III

QWV path in VBScript

Hi all,

i need to get the path of QVW file in my module.

in script, i can call DocumentPath to retrive the path, but in VBScript this will not work.

There is a object.Path in VBScript syntax but i need to initialize the object first.

Anyone has an idea how can i get the path?

Regards

Peyman

Tags (3)
1 Solution

Accepted Solutions
Highlighted
Not applicable

QWV path in VBScript

Here is the snippet for Active QVW Path and File Name in VBS, got it from API Guide:


Sub showPath

msgbox(ActiveDocument.GetPathName)

End Sub

Thanks,

Narasimha

View solution in original post

2 Replies
Highlighted
Not applicable

QWV path in VBScript

Here is the snippet for Active QVW Path and File Name in VBS, got it from API Guide:


Sub showPath

msgbox(ActiveDocument.GetPathName)

End Sub

Thanks,

Narasimha

View solution in original post

Highlighted
Creator III
Creator III

Re: QWV path in VBScript

to retrive only path :

tmpPath = ActiveDocument.GetPathName

lastBackSlash = InStrRev( tmpPath , "\" )

path = Left( tmpPath , (lastBackSlash - 1) )