GetSuperFileSubName

STD.File.GetSuperFileSubName( superfile, subfile [, absolutepath ] )

superfileA null-terminated string containing the logical name of the superfile.
subfileAn integer in the range of one (1) to the total number of sub-files in the superfile specifying the ordinal position of the sub-file whose name to return.
absolutepathOptional. A boolean TRUE/FALSE to indicate whether to prepend a tilde (~) to the resulting foreign logical file name. If omitted, the default is FALSE.
Return: GetSuperFileSubName returns a VARSTRING value.

The GetSuperFileSubName function returns the logical name of the specified subfile in the superfile.

This function is not included in a superfile transaction.

Example:

A := STD.File.GetSuperFileSubName('~CLASS::RT::IN::SF1', 1);
   //get name of first sub-file
//this example gets the name of the first sub-file in
// a foreign superfile
sf := '~thor_data400::BASE::Business_Header';
sub := STD.File.GetSuperFileSubName(  STD.File.ForeignLogicalFileName (sf,
         '10.150.29.161',
         TRUE),
  1,TRUE);
OUTPUT(STD.File.ForeignLogicalFileName(sub,''));