ChrisJRutter
Member
If I have a rowid but don't know the table it relates to, is there any way to locate the record and then identify the table?
Other than doing this:
def var bh as handle.
def var fnd as logi.
def var rwid as rowid.
rwid = <a valid rowid>.
for each _file no-lock where not _hidden:
create buffer bh for table _file._file-name.
fnd = bh:FIND-BY-ROWID(rwid),NO-LOCK).
if fnd then
do:
message 'found' string(rwid) 'in table' _file._file-name.
leave.
end.
end.
Other than doing this:
def var bh as handle.
def var fnd as logi.
def var rwid as rowid.
rwid = <a valid rowid>.
for each _file no-lock where not _hidden:
create buffer bh for table _file._file-name.
fnd = bh:FIND-BY-ROWID(rwid),NO-LOCK).
if fnd then
do:
message 'found' string(rwid) 'in table' _file._file-name.
leave.
end.
end.
Last edited: