I created a report with Quartam. I created the script and saved the .qrl file on the desktop where my main stack is located.
put "testrpt.qrl" into tLayoutFile
When I run the script, I get an error, "Can't find testrpt.qrl" If I enter the absolute path, it works perfectly.
I am drawing a blank here.... what would the relative file path be?
Thanks for the help/clue!
Rob
File location reference....
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
File location reference....
Rob Glassman
ArkStar
ArkStar
Re: File location reference....
Rob,
The relative path starts from the defaultFolder. Usually this starts off as the folder where the Revolution executable is located and definitely not your desktop folder.
A solution that always works:
Best regards,
Mark
The relative path starts from the defaultFolder. Usually this starts off as the folder where the Revolution executable is located and definitely not your desktop folder.
A solution that always works:
Code: Select all
set the itemDel to slash
put item 1 to -2 of the effective filename of this stack into myPath
put myPath & "/testrpt.q2rl" into tLayoutFile
-- now continue with your own script
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode