Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

azimabadi
Contributor II

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
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

2 Replies
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

azimabadi
Contributor II

Re: QWV path in VBScript

to retrive only path :

tmpPath = ActiveDocument.GetPathName

lastBackSlash = InStrRev( tmpPath , "\" )

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

Community Browser