Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method to search files 5 TIMES faster than GoFish #22

Open
myearwood1 opened this issue Nov 20, 2023 · 0 comments
Open

Method to search files 5 TIMES faster than GoFish #22

myearwood1 opened this issue Nov 20, 2023 · 0 comments

Comments

@myearwood1
Copy link

myearwood1 commented Nov 20, 2023

I created a utility called DirX which is able to handle more elements than ADIR. It can produce a cursor or an array. The cursor is better than an array since you can use FoxPro cursor-based commands.

https://github.com/myearwood1/DIRX

By applying this utility one can search all files for a string like this:

IF DirX('c_TheFiles','VFPPATH*.*','',.T.) > 0

*Which files contain "REPORT FORM"?
select ;
	occurs('REPORT FORM',upper(filetostr(alltrim(fullname)))) as nHowMany,*  ;
from ;
	c_TheFiles ;
where ;
	upper(filename) # 'MYSEARCH.PRG' ;
	and fileext in ('PRG')  ;
having ;
	nHowMany > 0 ;
order by ;
	fileext ;
INTO CURSOR ;
	JUSTTHESE ;
NOFILTER

endif

This code is 5 times faster than GoFish. The gatekeepers in this community prevent advancement by allowing for abuse of the skilled members.

Mr. Hennig is ignoring my input. He allowed Lutz to LIBEL me and both have been reported to Github for using the platform for illegal activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant