Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
Can i extract folder name from within the model script?
I have a qvw file in a folder, and i want to use the folder name in the script of that file. can it be done?
Thanks,
Raz
Hi,
There is DocumentPath() function that you can use. Its result contains not just a directory but the file name as well, but you can extract just the directory using string functions.
If you need the qvw folder to figure the folders for some other files, you can also use the relative path specification like '\subdirectory' for a sub-folder within a current folder or '..\subdirectory' for folder located on the same level as the current (qvw) folder.
/Masha
Hi,
There is DocumentPath() function that you can use. Its result contains not just a directory but the file name as well, but you can extract just the directory using string functions.
If you need the qvw folder to figure the folders for some other files, you can also use the relative path specification like '\subdirectory' for a sub-folder within a current folder or '..\subdirectory' for folder located on the same level as the current (qvw) folder.
/Masha
Thanks,
I thought it only works on files i load in the script but i see that it also works on the qvw itself.