Some time we need to display set of query result in a grid. Usually we use :
method A
But i used to :
method B
Let's assume that the criteria or field the user want to filter out is not indexed. Just want to know which one is a better choice and faster?
method A
Code:
SELECT columns WHERE condition INTO CURSOR cursorname
method B
Code:
USE tableA IN SELE(1)
USE tableA AGAIN ALIAS resultset
SET FILTER .F.
...
...
&&Then user type the condition in the textbox.
SELE resulset
SET FILTER TO condition