Consultor Eletrônico



Kbase 17403: How to recompile all your SpeedScript at one time.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   17/11/1999
How to recompile all your SpeedScript at one time.

How to recompile all your SpeedScript at one time.
--------------------------------------------------

There are 2 ways to recompile all your speedscript at one time.
--------------------------------------------------------------

1. The File Tools option does allow you to select multiple files.
You can just select them all and press compile once.

2. If you want to create all the intermediate .w files, you should
write a routine that calls tty/webutil/e4gl-gen.r directly.
Check out Chapter 5 in the developers guide (5-16).
The sample code is not complete, but the basic call is

{ src/web/method/cgidefs.i "NEW"}
/* The line above is required for WS 2.1 and not in WS 3.x */

DEF VAR wsoptions AS CHAR.
DEF VAR w-file AS CHAR INITIAL ?. /* Use the default .w file name. */

RUN tty/webutil.e4gl-gen.r
(INPUT "test.html",
INPUT-OUTPUT wsoptions,
INPUT-OUTPUT ws-file).
MESSAGE "The generated .w file is: " w-file VIEW-AS ALERT-BOX.
/* Compile it if it isn't an INCLUDE file. */
IF LOOKUP("include", wsoptions) eq 0
THEN compile VALUE(w-file) save.

RVE 11/14/97

Progress Software Technical Support Note # 17403