Hello,
I have created a CURSOR that has application wide scope. Here is a sample of how I have written this code:
* Cursor Creation
PUBLIC myCur
CREATE CURSOR myCur (cemp C(9) UNIQUE, clname C(25) UNIQUE, cfname C(25) UNIQUE)
Later in the application I have some code that generates a query to load this CURSOR. Example of this code:
* Cursor Load
SELECT cemp, clname, cfname FROM employee WHERE (This will vary based on user entry)
When the form that uses this CURSOR is accessed I need set the ORDER using this code:
SET ORDER TO TAG clname ASC
PROBLEM:
When I attempt the SET ORDER command I get an myCur INDEX ERROR. What am I doing wrong? I thought that the UNIQUE keyword creates a candidate index for the field and assigns the index tag the same name as the field.
Thank you,
Anthony
I have created a CURSOR that has application wide scope. Here is a sample of how I have written this code:
* Cursor Creation
PUBLIC myCur
CREATE CURSOR myCur (cemp C(9) UNIQUE, clname C(25) UNIQUE, cfname C(25) UNIQUE)
Later in the application I have some code that generates a query to load this CURSOR. Example of this code:
* Cursor Load
SELECT cemp, clname, cfname FROM employee WHERE (This will vary based on user entry)
When the form that uses this CURSOR is accessed I need set the ORDER using this code:
SET ORDER TO TAG clname ASC
PROBLEM:
When I attempt the SET ORDER command I get an myCur INDEX ERROR. What am I doing wrong? I thought that the UNIQUE keyword creates a candidate index for the field and assigns the index tag the same name as the field.
Thank you,
Anthony