PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → fListfile [WB9-10]
fListfile [WB9-10]
Débuté par Leo Voet, 03 juil. 2006 19:09 - Aucune réponse
Posté le 03 juillet 2006 - 19:09
In the browsercode of a webdev proj I want to fill a combo with the filenames in a directory on the server.
I copied the example of the help, but it doesn't work.
init combo:
NbrTxtFile = fListFile ("v:\*.doc", fillcombo , & i)
procedure fillcombo :
PROCEDURE fillcombo(Directory, Name, Change, NbrTxtFile)
// Variable declaration
ReadOnlyFile is int
// Read-only files?
Transfer(&ReadOnlyFile, NbrTxtFile, 4)
ReadOnlyFile++
Transfer(NbrTxtFile, &ReadOnlyFile, 4)
// Display file name in the "FileList" list
ListAdd(ComboBox1, Directory+Name)
RESULT True
when I debug this, it seems that all the '*.doc' of that directory are found, but after the last documentname has passed the routine, execution stops without returning to the calling procedure.
Any idea ?