Dir error

Having trouble using an XCmd or XFcn? Post your questions here.

Dir error

Postby JoeKoomen2011 » Fri Mar 10, 2017 1:23 pm

In the latest beta, I'm trying to get a list of HTML files from a folder using the Dir Xfcn, with a basic line of code.

Code: Select all
put Dir(tFolderPath,"False","notIntoPackages",RETURN,"TEXT","MOZB") into cd fld 1


I get the error code–

false
Invalid command -> TEXT

If i only specify the creator. is get the same


false
Invalid command -> MOZB

The code is pretty much straight from the Xtend project. Does the x need an upgrade?

Joe
Joe Koomen
>> Random! ...Damn near killed 'em! <<
User avatar
JoeKoomen2011
 
Posts: 453
Joined: Thu Mar 12, 2009 1:38 pm

Re: Dir error

Postby codegreen » Sun Mar 12, 2017 2:05 pm

The code is pretty much straight from the Xtend project.

No, it's not.

Try one of these instead:

Code: Select all
  put Dir(tFolderPath,"False","notIntoPackages", RETURN, "creator", "MOZB") into cd fld 1

or:

Code: Select all
  put Dir(tFolderPath,"False","notIntoPackages", RETURN, "type", "TEXT") into cd fld 1

-Mark
codegreen
 
Posts: 1477
Joined: Mon Jul 14, 2008 11:03 pm


Return to Using Externals

Who is online

Users browsing this forum: No registered users and 1 guest

cron