Hello all,
can anyone point me at a solution to this:
I have a dynamic query on a dynamic table, and I am
attempting to get a record from the query with an exclusive lock,
Now, I realise that I must be within a transaction to do this, but
i want to check programmatically whether an error is occuring due
to the lack of a transaction.
i.e. If I simply say:
hQueryHandle:get-first( exclusive-lock, no-wait).
then a Progress error is reported, but I wish to suppress this.
so, if I say instead
hQueryHandle:get-first( exclusive-lock, no-wait) No-Error.
I don't get the error reported, but the error-status is still false !!
so I thought I would use a non-void call:
lOK = hQueryHandle:get-first( exclusive-lock, no-wait) no-error.
.... but whether this works or fails, the lOK flag is still true in all cases....
.... anyone got any good way of checking for this error state ?
cheers,
Ing.
can anyone point me at a solution to this:
I have a dynamic query on a dynamic table, and I am
attempting to get a record from the query with an exclusive lock,
Now, I realise that I must be within a transaction to do this, but
i want to check programmatically whether an error is occuring due
to the lack of a transaction.
i.e. If I simply say:
hQueryHandle:get-first( exclusive-lock, no-wait).
then a Progress error is reported, but I wish to suppress this.
so, if I say instead
hQueryHandle:get-first( exclusive-lock, no-wait) No-Error.
I don't get the error reported, but the error-status is still false !!
so I thought I would use a non-void call:
lOK = hQueryHandle:get-first( exclusive-lock, no-wait) no-error.
.... but whether this works or fails, the lOK flag is still true in all cases....
.... anyone got any good way of checking for this error state ?
cheers,
Ing.