Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I need clarity on this include function.
As per my understanding, this is for load a text file in the load script editor. Correct me if I am wrong.
If yes, then I tried loading this following line,
'$(Include=[lib://DATA/file.txt]);'
It throws an error like,
The include statement inserts the contents of the file at that point and the inserted data is interpreted as script statements. Include is not used to add data. Only the Load statement can do that.
-Rob
Have you tried without single quotes?
$(Include=[lib://DATA/file.txt]);
Hi @CurtDaughtry,
I wrote without a single quote in my load script.
Did it work?
The include statement inserts the contents of the file at that point and the inserted data is interpreted as script statements. Include is not used to add data. Only the Load statement can do that.
-Rob
Good catch Rob. I assumed the script was in the text file. But definitely if it is a data file, then a load statement needs to be used to get it into the app.