ReplaceSuperFile.xml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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="ReplaceSuperFile">
  5. <title>ReplaceSuperFile</title>
  6. <para><emphasis role="bold">STD.File.ReplaceSuperFile<indexterm>
  7. <primary>STD.File.ReplaceSuperFile</primary>
  8. </indexterm><indexterm>
  9. <primary>File.ReplaceSuperFile</primary>
  10. </indexterm><indexterm>
  11. <primary>ReplaceSuperFile</primary>
  12. </indexterm>(</emphasis> <emphasis> superfile, subfile1 , subfile2
  13. </emphasis> <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>superfile</emphasis></entry>
  21. <entry>A null-terminated string containing the logical name of the
  22. superfile.</entry>
  23. </row>
  24. <row>
  25. <entry><emphasis>subfile1</emphasis></entry>
  26. <entry>A null-terminated string containing the logical name of the
  27. sub-file. This may be another superfile.</entry>
  28. </row>
  29. <row>
  30. <entry><emphasis>subfile2</emphasis></entry>
  31. <entry>A null-terminated string containing the logical name of the
  32. sub-file. This may be another superfile.</entry>
  33. </row>
  34. <row>
  35. <entry>Return:<emphasis> </emphasis></entry>
  36. <entry>Null.</entry>
  37. </row>
  38. </tbody>
  39. </tgroup>
  40. </informaltable>
  41. <para>The <emphasis role="bold">ReplaceSuperFile </emphasis>function removes
  42. the <emphasis>subfile1</emphasis> from the list of files comprising the
  43. <emphasis>superfile </emphasis>and replaces it with
  44. <emphasis>subfile2</emphasis>.</para>
  45. <para>This function may be included in a superfile transaction.</para>
  46. <para>Example:</para>
  47. <programlisting format="linespecific">SEQUENTIAL(
  48. STD.File.StartSuperFileTransaction(),
  49. STD.File.ReplaceSuperFile('MySuperFile',
  50. 'MyOldSubFile',
  51. 'MyNewSubFile'),
  52. STD.File.FinishSuperFileTransaction()
  53. );</programlisting>
  54. </sect1>