ForeignLogicalFileName.xml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
  4. <sect1 id="ForeignLogicalFileName">
  5. <title>ForeignLogicalFileName</title>
  6. <para><emphasis role="bold">STD.File.ForeignLogicalFileName<indexterm>
  7. <primary>STD.File.ForeignLogicalFileName</primary>
  8. </indexterm><indexterm>
  9. <primary>STD.File.ForeignLogicalFileName</primary>
  10. </indexterm><indexterm>
  11. <primary>ForeignLogicalFileName</primary>
  12. </indexterm>(</emphasis> <emphasis>filename </emphasis> <emphasis
  13. role="bold">[,</emphasis> <emphasis>foreigndali </emphasis> <emphasis
  14. role="bold">] [,</emphasis> <emphasis>absolutepath</emphasis> <emphasis
  15. role="bold">] )</emphasis></para>
  16. <informaltable colsep="0" frame="none" rowsep="0">
  17. <tgroup cols="2">
  18. <colspec colwidth="80.50pt" />
  19. <colspec />
  20. <tbody>
  21. <row>
  22. <entry><emphasis>filename</emphasis></entry>
  23. <entry>A null-terminated string containing the logical name of the
  24. file.</entry>
  25. </row>
  26. <row>
  27. <entry><emphasis>foreigndali</emphasis></entry>
  28. <entry>A null-terminated string containing the IP address of the
  29. foreign Dali. If omitted, the <emphasis>filename</emphasis> is
  30. presumed to be a foreign logical file name, which is converted to a
  31. local logical file name.</entry>
  32. </row>
  33. <row>
  34. <entry><emphasis>absolutepath</emphasis></entry>
  35. <entry>Optional. A boolean TRUE/FALSE to indicate whether to prepend
  36. a tilde (~) to the resulting foreign logical file name. If omitted,
  37. the default is FALSE.</entry>
  38. </row>
  39. <row>
  40. <entry>Return:<emphasis> </emphasis></entry>
  41. <entry>ForeignLogicalFileName returns returns a VARSTRING
  42. (null-terminated) value.</entry>
  43. </row>
  44. </tbody>
  45. </tgroup>
  46. </informaltable>
  47. <para>The <emphasis role="bold">ForeignLogicalFileName </emphasis>function
  48. returns either a foreign logical file name (if the
  49. <emphasis>foreigndali</emphasis> parameter is present) or a local logical
  50. file name.</para>
  51. <para>Example:</para>
  52. <programlisting format="linespecific">sf := '~thor_data400::BASE::Business_Header';
  53. ff := STD.File.ForeignLogicalFileName(sf,'10.150.29.161',true);
  54. //results in: ~foreign::10.150.29.161::thor_data400::base::business_header
  55. lf := STD.File.ForeignLogicalFileName(ff,'',true);
  56. //results in: ~thor_data400::base::business_header</programlisting>
  57. </sect1>