Main program can't be truncated using INCLUDE?

A forum dedicated to George scripting questions
Post Reply
User avatar
KenC
Posts: 174
Joined: 14 Aug 2009, 09:28
Location: Denmark

Main program can't be truncated using INCLUDE?

Post by KenC »

I'm just chewing my way through learning a bit of George, and when I try to include a file I get this error.

From the main script I stick this at the top:

#INCLUDE "kc-functions.grg"

And I get the error "ERROR:Main program can't be truncated"

All I have right now in "kc-functions.grg" is a dummy function that just runs a for loop that I call from the main script, the syntax should be correct because it worked fine when I had it in the main script.
There's no place like ~/
User avatar
KenC
Posts: 174
Joined: 14 Aug 2009, 09:28
Location: Denmark

Re: Main program can't be truncated using INCLUDE?

Post by KenC »

Bah, nevermind I should learn to read.

I'm used to sticking include statements at the top and in George they need to be at the bottom: :oops:
There's no place like ~/
Elodie
Posts: 13912
Joined: 06 Jan 2009, 09:53
Location: Metz

Re: Main program can't be truncated using INCLUDE?

Post by Elodie »

No problem KenC :D It's great you've found what you were looking for =)
Post Reply