Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- RLIB 3.0a Reference - <b>function:</b> makealias() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Function:    MAKEALIAS()

Purpose:     Construct a database work area alias from a full filename.

Syntax:      MAKEALIAS( filename )

Arguments:   filename    - Character string or variable name of the file
                           from which to construct a default work area
                           alias name.  If omitted or a non-character
                           parameter is provided, a null string is
                           returned and RLIBERROR() set.

Returns:     A default work alias for a supplied DBF file name.

Description: This function will strip off a trailing .DBF extension and
             any leading drive/path name qualifiers to create a default
             alias.  This is useful in a runtime environment where it is
             necessary to supply a valid alias name where otherwise one
             would not be available.

Notes:       This can be most useful for creating generic file open
             functions where a standard default work area alias name must
             be generated when a file is opened.  MAKEALIAS() is used
             internally by OPENED() to construct an alias name from the
             database file name.

Example:     ? MAKEALIAS("c:\data\myfile.dbf")      && returns "MYFILE"

Source:      RL_MAKEA.PRG

See also:    OPENED()

See Also: OPENED()

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