Forum Post: RE: Is there a way to convert a temp-table handle back to the static definition?

  • Thread starter Thread starter Stefan Drissen
  • Start date Start date
Status
Not open for further replies.
S

Stefan Drissen

Guest
If you know the definition of what you are receiving you can. a.p DEF VAR ht AS HANDLE. DEF VAR hb AS HANDLE. CREATE TEMP-TABLE ht. ht:ADD-NEW-FIELD( "ii", "integer" ). ht:TEMP-TABLE-PREPARE( "ttdynamic" ). hb = ht:DEFAULT-BUFFER-HANDLE. hb:BUFFER-CREATE(). hb::ii = 2014. RUN b.p (TABLE-HANDLE ht). b.p DEFINE TEMP-TABLE tt FIELD ii AS INT. DEFINE INPUT PARAMETER TABLE FOR tt. FOR EACH tt: MESSAGE tt.ii VIEW-AS ALERT-BOX. END. I would assume that this also works with classes.

Continue reading...
 
Status
Not open for further replies.
Back
Top