Consultor Eletrônico



Kbase P26898: How to recompile all your SpeedScript at once.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   14/08/2004
Status: Unverified

GOAL:

How to recompile all your SpeedScript at once.

FIX:

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.