RDD

Dbf()

Return the alias of the current work area

Syntax

Signature
Dbf() --> cAlias

Arguments

None.

Return value

The alias of the current work area, or an empty string when no area is open.

Description

Dbf() is an alias for Alias(). It returns the alias assigned to the current work area without changing the selection.

Notes

The returned text is in uppercase when the alias was created in the usual RDD form.

Example

Dbf.prg
PROCEDURE Main()

   DbCreate( "dbf_demo.dbf", { { "NAME", "C", 12, 0 } } )
   DbUseArea( .T., , "dbf_demo.dbf", "People" )
   QOut( "Alias: " + Dbf() )
   DbCloseArea()
   FErase( "dbf_demo.dbf" )

RETURN

Output

See also