I have a file that contains several xlsx spreadsheets I intend to create a routine that takes each file, reads it and stores it in QVD and the name of the QVD will be the name of the file. I created the following script, but it's giving NULL, it doesn't give an error, but it doesn't extract any xlsx. Someone can help me?
set vTableName = '';
For Each File In FileList ('$(vCaminhoOrigemDadosOi)/*.xlsx')
// LET vTableName = subfield(mid('$(File)', index('$(File)', '\',-1) +1), '.xlsx', 1);
LET vTableName = subfield(mid('$(File)', index('$(File)', '\',-1) +1), '.xlsx', 1);
// SubField(SubField(vArquivo, '\', -1), '.'&vExt, 1) LET size = filesize('$(File)');