【发布时间】:2022-04-27 13:26:02
【问题描述】:
我对 Progress 还很陌生,如果我遗漏了任何明显的东西,我会很抱歉,所以我已经在网上搜索过,但还没有找到我要找的东西。
我正在运行类似于下面的动态查询,在此示例中,在运行查询之后,相应记录的“年龄”字段显示在屏幕上,我了解这是如何从缓冲区字段属性完成的 -方法,但我的问题是如何显示整个记录,是否有等效的属性方法,或者我误解了一些关键的东西?感谢您的时间。 :
def var tbl as character no-undo.
def var fld as character no-undo.
def var qh as handle no-undo.
def var bh as handle no-undo.
def var fh as handle no-undo.
assign tbl = "customer".
assign fld = "age".
create buffer bh for table tbl.
create query qh.
qh:set-buffers( bh ).
qh:query-prepare( "for each " + tbl + " where name = 'tom'" ).
qh:query-open.
do transaction:
qh:get-first( no-lock ).
fh = bh:buffer-field( fld ).
display fh:buffer-value.
end.
delete object bh.
delete object qh
【问题讨论】:
标签: progress-4gl openedge dynamicquery