Consultor Eletrônico



Kbase 19381: How To Copy The Contents Of A Record To A Variable
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   15/10/2008
Status: Verified

GOAL:

How to copy records to a variable using the clipboard handle.

FACT(s) (Environment):

Windows 32 Intel
Windows NT 32 Intel/Windows2000

FIX:

The code uses the Customer table from the Sports Database.

Two alternative methods are: 1) output to a file and concatenate the input stream to the variable, or 2) walk the _field table for the table in question and concatenate the values to the variable.


DEFINE VARIABLE cCust AS CHARACTER NO-UNDO.

FOR EACH Customer NO-LOCK:
OUTPUT TO "CLIPBOARD".
 EXPORT Customer.
 OUTPUT CLOSE.
 ASSIGN cCust = CLIPBOARD:VALUE.
 MESSAGE cCust VIEW-AS ALERT-BOX.
END.