Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Extract from textfile...
#3
if you're looking to flip through a whole directory of files.

Macro
Code:
Copy      Help
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]
An old blog on QM coding and automation.

The Macro Hook


Messages In This Thread

Forum Jump:


Users browsing this thread: 5 Guest(s)