acutesweetpie
8th December 2022, 12:34
Hi,

I have been working on the requirement where I am picking all the files at the particular path mentioned in the table. I need to show all these files against the connection point. I am using dir.entry() to fetch the file name and then holding all the files in an array.
Can someone please help me in displaying all these files in my form field ? The entire value of array needs to be shown.

This is the part of code I have written:
while not isspace(trace.file)
if ftaad.dll0001.name.match("*.json",trace.file) then
inc(trace.files.found)
alloc.mem(trace.file.name, 60, trace.files.found)
trace.file.name(1, trace.files.found) = trace.file
endif
trace.file=dir.entry(dir.trace,TFILE, ftype, fsize,fmod)
endwhile

mark_h
8th December 2022, 15:12
I can't really say about your code. But I do not we have a form where people have shared code that you can use or modify yourself.

Below are 2 samples - maybe they have something that will help you. You might even want to search that directory.
http://www.baanboard.com/baanboard/showthread.php?t=46906&highlight=directory
http://www.baanboard.com/baanboard/showthread.php?t=26814&highlight=directory