swirl Guide to OmniMark 6   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesOMX VariablesErrors
 
  Related Syntax     Other Library Functions  
function   vfsFileName   Available in:
Professional
Enterprise

Library: omvfs - virtual file system
Include: omvfs.xin
Return type: String
Returns:       

The fully qualified file name in URL or local file system format.


Declaration

  define external stream function vfsFileName
         value  vfsFile  file
  where
file
is the vfsFile component associated with the file you want to obtain the name of.


Purpose

Use vfsFileName to get the file name of a vfsFile object.

Requirements

You must include the following line at the beginning of your OmniMark program:

  include "omvfs.xin"

The vfsFile object file must be open (else external exception VFS200).

Usage Notes

The function returns the filename in

Example: Get the name of the file associated with a specific vfsFile variable.

The output from this program will be "/programs/myscript.xom".

  include "omvfs.xin"

  process
    local vfsFile myFile
    local stream file-name
  	. . .
    set myFile to vfsOpen "/programs/myscript.xom"
    	. . .
    set file-name to vfsFileName myFile
    output file-name

    Related Syntax
   vfsOpen
   vfsFile
 
  Other Library Functions
   vfsChangeDir
   vfsChangeOwner
   vfsChangePermissions
   vfsClose
   vfsConnect
   vfsConnectDir
   vfsCopy
   vfsCursorPosition
   vfsDeleteDir
   vfsDeleteFile
   vfsDescribe
   vfsDescribeFile
   vfsDir
   vfsDirName
   vfsDisconnect
   vfsFile
   vfsFileDir
   vfsFileName
   vfsIsVersionCompatible
   vfsLibraryVersion
   vfsLink
   vfsList
   vfsLock
   vfsMakeDir
   vfsMove
   vfsMoveCursor
   vfsOpen
   vfsRead
   vfsTruncate
   vfsUnlock
   vfsWrite
 
----  

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ OMX ] [ ERRORS ]

OmniMark 6.5 Documentation Generated: December 23, 2002 at 6:25:48 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © OmniMark Technologies Corporation, 1988-2002.