Date:  11/21/2002 06:54:25 PM Msg ID:  001019
From:  FoxWeb Support Thread:  001018
Subject:  Re: Error in returning a large fwx page
The current version of FoxWeb converts FWX scripts to PRG files, translating blocks of static code to multiple calls to the Response.Write method.  This means that even static HTML text affects the size of your program.  To get an idea of what your program looks like after it is converted to a PRG file, enable the Keep PRG files option in the FoxWeb Control Center, delete the FXP file and call your script again.  You should be left with a PRG translation of your FWX script.
 
One work-around would be to place your static code in one of more files and retrieve it with the FILETOSTR command:
 
* Some VFP code
a=123
b=234
* Now read the static code
Response.Write(FILETOSTR('MyStaticFile.htm'))
* Some more VFP code
Response.Write('Sent on: ' + TTOC(DATETIME()))

You can also include expressions in the disk file and use the MergeTxt function to substitute them:

* Some VFP code
a=123
b=234
* Now read the static code
Response.Write(MergeTxt(FILETOSTR('MyStaticFile.htm')))
* Some more VFP code
Response.Write('Sent on: ' + TTOC(DATETIME()))

A future version of FoxWeb will improve the way it handles static code in FWX scripts, by taking advantage of new VFP 7 features.

FoxWeb Support Team
support@foxweb.com email

Sent by James Williams on 11/21/2002 07:22:16 AM:
I have a 2165 line fwx page, which only has 4 lines of fox code. If i try to request this page i get "Error in FoxWeb fundation program".
 
Fox log reports :
Script : Error in FoxWeb fundation program
Error : 1202 : Program is too large.
Line :154:Complie..
 
Is there a limit to the size of file that can be returned by foxweb, if so that is the limit.