GETRESOURCENAME

The GETRESOURCENAME function returns the adapter source or target command of a specified card object. Without an argument, it returns the adapter command associated with the active source or destination.

You can use GETRESOURCENAME in a component or map rule when you need to know the name of a source or destination.

Syntax:
GETRESOURCENAME ([ single-simple-object-name ])
Meaning:
GETRESOURCENAME ([ card_for_which_resource_info_is_needed ])
Returns:
A single text item

With an argument, the source or destination name that is associated with the card. Without an argument, returns the source or destination name associated with the active source or destination.

Examples

  • GETRESOURCENAME (OrderFile)

    If the card OrderFile is associated with the data file, install_dir\order.txt, the GETRESOURCENAME function returns install_dir\order.txt.

Related functions

  • GETDIRECTORY
  • GETFILENAME

Feedback