May I please ask for help with a code error in Pano6. This is a code you gave me long ago and it still works great with one exception. If the file is named “Room F1009” all is good, but if the file is named “Room F-1009” it stops. I can repeat the error. The “dash” in the name keeps it from working. Is there an adjustment that will allow the “dash”
Thank you for the help.
Window "TESTME:TRIP"
Field “A”
fileglobal thefiles, thefolder, tic
thefolder=folderpath(info(“desktopfolder”) )
thefiles=listfiles(pathid(folderpath(info(“desktopfolder”) )+“FileImport”),"")
Window “TESTME:TRIP"
Field “A"
If listfiles(pathid(folderpath(info(“desktopfolder”) )+“FileImport”),””)≠""
tic=arraysize(thefiles,¶)
loop
opentextfile “+”+thefolder+“FileImport:”+array(thefiles,tic,¶)
movefile thefolder+“FileImport:”+array(thefiles,tic,¶),
thefolder+“EmailHold:”+array(thefiles,tic,¶)
tic=tic-1
until tic=0
endif