Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FlexFile Reference Guide - <b>v_alias()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 V_ALIAS()
 Return the alias of the current or a specified DBV work area
-------------------------------------------------------------------------------

 Syntax

    V_ALIAS( [<nDBVArea>] )   ->    cDBVAlias

 Arguments

    <nDBVArea> is any valid DBV work area.

 Returns

    V_ALIAS() returns the alias of the DBV work area <nDBVArea>. If no
    <nDBVArea> is specified, then the alias of the current work area
    is returned.

 Description

    V_ALIAS() is used to return the name of a DBV work area. This name
    is either the name of the DBV file or the name specified as the
    second parameter in the V_USE() function. If there is no DBV file
    open in the <nDBVArea>, V_ALIAS() will return a null string ("").

    Any function which accepts a DBV area as a parameter can also
    accept an alias in place of the area.

    The alias is always returned in capital letters regardless of how
    it was passed to V_USE().

 Notes

  . Do not confuse Clipper's alias names with FlexFile's; they are
    mutually exclusive. For example, you can have a DBF file with an
    alias of "MYFILE" and simultaneously have a DBV file with the same
    alias.

 Examples

    // Open two DBV files in two new areas.
    V_SELECT(1)
    V_USE( "file1", "file_one" )// Creates if not existing
    V_SELECT(2)
    V_USE( "file2" )         // Creates if not existing

    ? V_ALIAS()              //  Returns: file2
    ? V_ALIAS(1)             //  Returns: FILE_ONE

See Also: V_SELECT() V_USE() V_FILES()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson