我对 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