Navigation:  Reference > Functions >

MakeDirectory()

Print this Topic Previous pageReturn to chapter overviewNext page

 

MAKE_DIR(1,2)

 

PURPOSE

This function creates a new directory on a disk drive.

 

PARTS

 

1 f/c/eRequired - The name of the directory to create, must include complete path.

 

    2 f/c/e       Optional - set to .T. to force the creation of folders. Note: Added after 7.1 Build 11 Powered by CAS

 

 

RETURN TYPE - L

If the directory/Folder is created properly the function returns .T., otherwise it returns .F.

 

EXAMPLE

 define dummy_l type L

 dummy_l = MAKE_DIR('My_Folder')

if Dummy_L

      msg 'We made My_folder'

else

    msg 'we could not make that folder name.'

endif

 ret

 


Page url: http://www.cassoftware.com/tas/manual/makedirectory().htm