Patricia Cu
Programmer
thread184-1776680
Hello,
I am in charge of doing maintenance for a VFP 9 application that has been used since the 2000s at least. It was developed by multiple people. The infrastructure is quite big, with a lot of custom classes that 'wrap' and extend the base functionality of native controls.
For the grid, a class exists which allows for sorting on columns when clicking on the column header.
The code that executes the sorting, follows the recommended/standard INDEX ON TAG logic. But in order to issue the INDEX ON command, it first does the following:
sele(lcalias)
if recc() > 10000
nchoice = ogx.gmessagebox("Create New Index", 4+32+256)
endif
I am not sure why it needs to perform this check, if it was needed in previous versions of vfp, and no longer required, or if there is another way to sort grid columns that does not have to perform this check? What does it prevent?
Thank you for your time.
Patricia
PS: Apologies if this is not related to the thread mentioned above.
Hello,
I am in charge of doing maintenance for a VFP 9 application that has been used since the 2000s at least. It was developed by multiple people. The infrastructure is quite big, with a lot of custom classes that 'wrap' and extend the base functionality of native controls.
For the grid, a class exists which allows for sorting on columns when clicking on the column header.
The code that executes the sorting, follows the recommended/standard INDEX ON TAG logic. But in order to issue the INDEX ON command, it first does the following:
sele(lcalias)
if recc() > 10000
nchoice = ogx.gmessagebox("Create New Index", 4+32+256)
endif
I am not sure why it needs to perform this check, if it was needed in previous versions of vfp, and no longer required, or if there is another way to sort grid columns that does not have to perform this check? What does it prevent?
Thank you for your time.
Patricia
PS: Apologies if this is not related to the thread mentioned above.