PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → How to enumerate all files in DB and process them
How to enumerate all files in DB and process them
Iniciado por guest, 14,dic. 2017 08:26 - 2 respuestas
Publicado el 14,diciembre 2017 - 08:26
Hello,

I want to check index of each file in my database which is HFClassic and if there are any problems reported I want to index the files in question.

So how can I iterate through all the files in my database without having to hard-code for each file?

TIA
Publicado el 14,diciembre 2017 - 09:53
Something like this will do

sFileList = HListFile(hLstSorted)
FOR EACH STRING sFile OF sFileList SEPARATED BY CR
HIndex(sFile, hNdxNormal+hNdxDelete)
END

you can add additional checks yourself like errorhandling and so on
I do a HCheckStructure("*",hNoCheck) first for instance
Publicado el 18,diciembre 2017 - 04:43
Arie,

Thanks the code sample.

I managed to get it working finally!