02-27-2009, 08:03 AM
if you're looking to flip through a whole directory of files.
Macro
Macro
str strNum strAllNums strAllFiles
Dir d
ARRAY(str) aResult
foreach(d "c:\temp\*.txt" FE_Dir)
,str sPath=d.FileName(1)
,_s.getfile(sPath)
,strAllFiles.from(strAllFiles "[]" _s)
findrx(strAllFiles "[0-9]{23}" 0 4 aResult);;Note: This is Unicode safe. There are more than 10 numbers in Unicode.
for(_i 0 aResult.len)
,out "%s" aResult[0 _i]