Hi guys, I want to use a frame with temp-table/buffer values. The problem is I can't make understand the program to know that at each point it is the same field that I want. I have to work something like that because I don't know in advance what the table and the field will so I must reference it to the temp-table that I built dynamicly depending of the field that I want.
Here is s nippet of the code now that doesn't work :
Here is s nippet of the code now that doesn't work :
Code:
CREATE TEMP-TABLE tTable.
tTable:ADD-FIELDS-FROM(bdTable,sFields).
tTable:TEMP-TABLE-PREPARE("tempList").
tBuffer = tTable:DEFAULT-BUFFER-HANDLE.
CREATE BUFFER tBuffer FOR TABLE sTable.
CREATE QUERY tQuery.
tQuery:SET-BUFFERS(tBuffer).
tQuery:QUERY-PREPARE("FOR EACH " + sTable + " " + sWhere).
tQuery:QUERY-OPEN.
tQuery:GET-FIRST.
Display tParam2:BUFFER-VALUE() tParam3:BUFFER-VALUE()
With Frame sFrameName Row iFrameRow Column iFrameColumn Overlay iOverlay Down.
/**** Some awfull coding ****/
tParam2 = tBuffer:BUFFER-FIELD("Field1").
tParam3 = tBuffer:BUFFER-FIELD("Field2").
Display tParam2:BUFFER-VALUE() tParam3:BUFFER-VALUE() with frame sFrameName.
Down With Frame sFrameName.
/*** Other code ***/
Choose Row ***FIELD1**** NO-ERROR With Frame sFrameName.
Last edited by a moderator: