Kbase P8031: Can you connect to a database and compile a procedure against it in the same 4GL code procedure?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  15/10/2008 |
|
Status: Verified
GOAL:
Can you connect to a database and compile a procedure against it in the same 4GL code procedure?
FIX:
Yes, establishing a connection to a database and then issuing a compile statement can be done in the same session in back to back statements.
Example Code Snippet.
/*** connect.p ***/
CONNECT sports2000.db -1.
COMPILE forEach.p SAVE.
/*** forEach.p ***/
FOR EACH customer NO-LOCK:
DISPLAY customer EXCEPT comments.
END.