RenameLogicalFile.xml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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="RenameLogicalFile">
  5. <title>RenameLogicalFile</title>
  6. <para><emphasis role="bold">STD.File.RenameLogicalFile<indexterm>
  7. <primary>STD.File.RenameLogicalFile</primary>
  8. </indexterm><indexterm>
  9. <primary>File.RenameLogicalFile</primary>
  10. </indexterm><indexterm>
  11. <primary>RenameLogicalFile</primary>
  12. </indexterm>(</emphasis> <emphasis> filename, newname </emphasis>
  13. <emphasis role="bold">)</emphasis></para>
  14. <informaltable colsep="1" frame="all" rowsep="1">
  15. <tgroup cols="2">
  16. <colspec colwidth="80.50pt" />
  17. <colspec />
  18. <tbody>
  19. <row>
  20. <entry><emphasis>filename</emphasis></entry>
  21. <entry>A null-terminated string containing the current logical name
  22. of the file.</entry>
  23. </row>
  24. <row>
  25. <entry><emphasis>newname</emphasis></entry>
  26. <entry>A null-terminated string containing the new logical name for
  27. the file.</entry>
  28. </row>
  29. </tbody>
  30. </tgroup>
  31. </informaltable>
  32. <para>The <emphasis role="bold">RenameLogicalFile </emphasis>function
  33. changes the logical <emphasis>filename</emphasis> to the
  34. <emphasis>newname</emphasis>.</para>
  35. <para>Example:</para>
  36. <programlisting format="linespecific">A := STD.File.RenameLogicalFile('Fred', 'Freddie');</programlisting>
  37. </sect1>