Welcome! Log In Create A New Profile

Advanced

hIndex()

Posted by Willy 
hIndex()
January 14, 2020 10:16AM
With HIndex you can reindex a datafile.

Is there a way to reindex all files with 1 function ?

Thanks
Re: hIndex()
January 14, 2020 11:56AM
Hi Willy,

no, there is no function for it, but one can be easily made!

J = 1
FileList = HListFile(hLstNormal) + CR
ErgebnisString = ExtractString(FileList,J,CR)
WHILE ErgebnisString <> EOT
HIndex(ErgebnisString)
J++
ErgebnisString = ExtractString(FileList,J,CR)
END

Kind regards,
Guenter Predl
office@windev.at



Edited 2 time(s). Last edit at 01/14/2020 05:34PM by gpredl.
Re: hIndex()
January 15, 2020 09:39AM
Thanks

It works.

Willy Hermans

j is int
filelist is string
cElement is string

j = 1
filelist = HListFile(hLstNormal) + CR
cElement = ExtractString(filelist,j,CR)
WHILE cElement <> EOT
	IF HFileExist(cElement) THEN
		HIndex(cElement,hNdxNormal)	
	END
	j++
	cElement = ExtractString(filelist,j,CR)
END
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: