Consultor Eletrônico



Kbase P98744: How to use SpeedScript with WebSpeed?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   25/05/2006
Status: Unverified

GOAL:

How to use SpeedScript with WebSpeed?

GOAL:

Example in using SpeedScript with WebSpeed

FIX:

SpeedScript tag Use <Script Language="SpeedScript"> to identify SpeedScript code within an HTML file. This tag defines 4GL code that must be compiled and processed when a request is made to an HTML page. It should always end with the tab </script>.
This is an example of including a SpeedScript tag:
<script language="SpeedScript">
DEFINE VARIABLE vcCustName AS CHARACTER NO-UNDO.
DEFINE VARIABLE vcToday AS CHARACTER NO-UNDO.
FIND FIRST CUSTOMER NO-LOCK NO-ERROR.
IF AVAILABLE CUSTOMER THEN DO:
ASSIGN vcCustName = Customer.Name.
END.
ELSE DO:
ASSIGN vcCustName = "No Customer Available".
END.
ASSIGN vcToday = STRING(today).
</script>