Consultor Eletrônico



Kbase P12676: How to convert a string back into a handle?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   27/01/2003
Status: Unverified

GOAL:

How to convert a string back into a handle?

FIX:

Use the WIDGET-HANDLE function to convert a string which contains a handle back into a handle value.

For example, assuming that the variable cHandle contains the character representation of a handle (the handle was converted to a string at some point by using the STRING() function), the following code would convert the string value back into a usable handle value:

DEFINE VARIABLE cHandle AS CHARACTER NO-UNDO.
DEFINE VARIABLE hHandle AS HANDLE    NO-UNDO.

ASSIGN hHandle = WIDGET-HANDLE(cHandle).