English 中文(简体)
进展中动态参考参考临时表列值
原标题:Dynamically reference temp-table column values in Progress

我在使用进步4GL

我有一个数据电子表格 包含数栏数据1... 50

我创造了一个保有所有价值的 临时工作表。

现在我想绕过临时表格的柱子 进行各种计算

所以我需要这样的东西:

for each record loop thru cols_in_temp_table .

   if col_value = "XYZ" then
     do calcs and stuff      

end.

那么,我该如何参照 临时性的花椰子?

问题回答

Ok, 未解析原始查询, 但找到了一个变通办法 。 将数据拆分并放入不同的表格中, 长长的括号, 但它会操作 。

依你的版本而定,这是做到这一点的一种方式:

DEFINE VARIABLE h-cols  AS HANDLE   NO-UNDO.         

h-cols = tt-cols:BUFFER-HANDLE.                      

FOR EACH tt-cols                                     
   NO-LOCK:                                         

   IF h-cols::col-name = "some value" THEN       
       RUN do-something.                            

END.        

无法做“ : : ” 操作员的版本, 请这样做 :

FOR EACH tt-cols                                     
   NO-LOCK:                                         

   IF h-cols::buffer-field("col-name"):buffer-value = "some value" THEN       
       RUN do-something.                            

END.        




相关问题
Progress 4GL that calls a C function

I have been working in some C language function that is going to be called from a Progress 4GL application and I found myself with the following doubts: The C function uses malloc to dynamically ...

How can I display and manipulate record arrays?

Looking for the following forms functionality with INFORMIX 4GL?, ISQL with ESQL/C?, PROGRESS-4GL?, ORACLE? etc? I have a CRUD form which displays a customer[master] with all of their asociated ...

Transaction & Locks Problem

with in do transaction, i defined a label and in this label i am accessing a table with exclusive-lock.and at the end of label i have done all the changes in that table. bt now i am with in ...

Delphi connection to OpenEdge Progress-4GL Database

Folks: Has anyone had success connecting to a Progress-4GL database with Delphi?   I ve been unable to establish any connection with the ODBC driver provided by the vendor (Progress OpenEdge ...

Progress 4GL and .Net

I m trying to get data out of a Progress 4GL database, into SQL Server. Ideally, I d like to do this directly and within .NET, rather than through an ODBC driver since the ODBC driver gateway in ...

How do I do HTTP GET and POST in Progress/OpenEdge ABL?

The Progress docs spill plenty of ink on SOAP, but I m having trouble finding the example for a simple HTTP GET/POST with Progress ABL. How do I GET and POST strings to/from a URL? Can the URL be ...

热门标签