get_channels_from_pack (s)

The get_channels_from_pack (s) function returns a list of channels in the active Document that are defined for a slot.

s is the name of the slot. "" lists all channels defined for all slots.

The function returns a string that contains all matching channels, which are separated by tabs. If there is no active Document Pack, the function returns an empty string.

Examples

 get_channels_from_pack("Coverletter")

returns a list of channels defined for the Coverletter slot.

Var Text channel;
ForEach channel
  In get_channels_from_pack ("")
  Separator _Tab
Do
  Progress Message ("Channel: " + channel);
Od;

sends a progress message for each channel in the Document Pack.