< Futurebasic < Language < Reference

resultCode = Usr FSGetFolderName(fsSpec, folderName$)

Revised August, 2002 (Release 7)

Description - This function returns the name of the folder that contains the file specified by fsSpec.

Note: You will not be able to use this function unless you include the proper header file as follows:

Include "Util_Files.incl"

Example:

Include "Util_Files.incl"

Dim fs As FSSpec

Dim x,name$

name$ = Files$(_FSSpecOpen,,,fs)

x = Usr FSGetFolderName(fs,name$)

Print name$

Do HandleEvents Until 0

See Also FINDERINFO, FILES$; USR SCANFOLDER

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.