Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi:
I was trying to use QvdCreateTime to check if a qvd file is exist or not.
At first, I was trying to use relative path in my script as followed (I already set my directory to a file called 'Data'. The qvd file sits in the 'QVD' file in side 'Data' file):
IF (NOT ISNULL(QvdCreateTime('QVD\MyQvdFile.qvd'))) THEN
//Do something
END IF
But the above code always skip.
Then I change it to a absolute path and it worked and the script inside get executed.
I want to ask how can I use the relative path in QvdCreateTime? Or it is default not to use relative path?
Thank you very much.
Best regards,
Paco
Hi
Qvdxxx() functions can use certainly use relative paths. These are relative to the location of the qvw file. Unlike LOAD statements, they do not follow the DIRECTORY option, only the qvw document location.
HTH
Jonathan
Try this....
IF (NOT ISNULL(QvdCreateTime('..\QVD\MyQvdFile.qvd'))) THEN
//Do something
END IF
Hi Pradip:
Doesn't '..' take you to one level up in the directory?
Thanks.
PC
Hi
Qvdxxx() functions can use certainly use relative paths. These are relative to the location of the qvw file. Unlike LOAD statements, they do not follow the DIRECTORY option, only the qvw document location.
HTH
Jonathan
Could you please tell me absolute path or folder structure of your project?
Hi Jonathan:
I didn't know that DIRECTORY doesn't work on QvdCreateTime() functions.
Thank you very much.
PC
Hi Pradip:
Thank you very much for your reply.
As Jonathan suggested that, QvdCreateTime() functions does not follow the DIRECTORY options.
I think that's the reason why my script doesn't work.
Best regards,
PC