1) you read every record in the table and keep the biggest one in memory, but depending on the number of records, it can take a lot of time to find it.
2) put a new index on it and when you need it do:
MyRecord.RESET;
MyRecord.SETCURRENTKEY("My Integer");
IF MyRecord.FIND('+') THEN
MESSAGE('The biggest value is %1',MyRecord."My Integer");
This option slows down a little on writing in that table but reading is lightning fast.
Regards,Alain Krikilion No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Comments
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
1) you read every record in the table and keep the biggest one in memory, but depending on the number of records, it can take a lot of time to find it.
2) put a new index on it and when you need it do:
MyRecord.RESET;
MyRecord.SETCURRENTKEY("My Integer");
IF MyRecord.FIND('+') THEN
MESSAGE('The biggest value is %1',MyRecord."My Integer");
This option slows down a little on writing in that table but reading is lightning fast.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!