GetExpandLogicalName

ThorLib.GetExpandLogicalName ( filename )

filenameA null-terminated string containing the logical name of the file.
Return: GetExpandLogicalName returns a VARSTRING (null-terminated) value.

The GetExpandLogicalName function returns a string containing the expanded logical filename (including the default scope, if the filename does not contain a leading tilde), all in lowercase. This is the same value as is used internally by DATASET and OUTPUT.

Example:

IMPORT STD;
A := STD.System.ThorLib.GetExpandLogicalName('Fred');