Progress
Language Reference
UNIQUE-ID Attribute
A value that Progress guarantees is unique within the Progress session.
Data Type: INTEGERAccess: ReadableApplies To: Buffer Object Handle, Buffer-field Object Handle, Query Object Handle, THIS-PROCEDURE System Handle (and all procedure handles), X-document Object Handle, X-noderef Object HandleProgress reserves the right to recycle procedure handles within a Progress session. If your application runs persistent procedures, stores the handles, deletes the procedures, and runs more persistent procedures, either the same ones or different ones, the procedure handles you stored might now correspond to different persistent procedure instances.
To avoid this problem, store the UNIQUE-ID attribute of the procedure handle along with the handle. Before you reuse a stored procedure handle, compare the value of UNIQUE-ID that you stored against the value of the UNIQUE-ID attribute of the stored handle. If they do not match, you know that Progress recycled the procedure handle, and you can discard it before it causes damage.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |