none
Retrive name of dbf file in current use RRS feed

  • Question

  • I would like to retrieve in a variable the name of the database being used . Imagine that I have open to use a table named BASEDEDATOS.DBF I would like from the command window retrieve the name, that is store in a variable the string "BASEDEDATOS" so that I can use it in other operations...
    Sunday, January 13, 2019 9:18 PM

Answers

  • To find name of the currently used alias you can use ALIAS(), e.g.

    lcCurrentAlias = alias() && will return basedatos

    Look also at SELECT(), DBF(), DBC() functions in Help.


    For every expert, there is an equal and opposite expert. - Becker's Law


    My blog


    My TechNet articles

    Monday, January 14, 2019 3:05 AM
    Moderator