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

  • Thread starter Thread starter Peter Judge
  • Start date Start date
Status
Not open for further replies.
P

Peter Judge

Guest
Look at the BIND keyword. You should be able to do something similar to the below with temp-tables. method protected void BindReceivedDataset( input dataset dsOrder bind): /* no body needed. the parameter passing does what we need. */ end method. method override protected void ReceiveDataset(input phDataset as handle): BindReceivedDataset(dataset-handle phDataset). end method. It's not the most elegant syntax, and you can't use it in interfaces, but it works well enough. Once you've done that dance, you can do a FOR EACH on the temp-tables. -- peter From: jquerijero [mailto:bounce-jquerijero@community.progress.com] Sent: Monday, 10 March, 2014 10:31 To: TU.OE.Development@community.progress.com Subject: Is there a way to convert a temp-table handle back to the static definition? Is there a way to convert a temp-table handle back to the static definition? Thread created by jquerijero I have a handle to a static temp-table that I pass around. Is there a trick so that I can convert the handle parameter back to the static temp-table definition. Ex. DEFINE TEMP-TABLE my-table . . . PUBLIC SomeMethod(INPUT TABLE-HANDLE my-table-handle) ... /* convert handle to static temp-table, so I can use my-table.field1 instead of my-table-handle:BUFFER-FIELD("field1") */ Stop receiving emails on this subject. Flag this post as spam/abuse.

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