RemoveSuperFile.xml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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="RemoveSuperFile">
  5. <title>RemoveSuperFile</title>
  6. <para><emphasis role="bold">STD.File.RemoveSuperFile<indexterm>
  7. <primary>STD.File.RemoveSuperFile</primary>
  8. </indexterm><indexterm>
  9. <primary>File.RemoveSuperFile</primary>
  10. </indexterm><indexterm>
  11. <primary>RemoveSuperFile</primary>
  12. </indexterm>(</emphasis> <emphasis> superfile, subfile </emphasis>
  13. <emphasis role="bold">[</emphasis> <emphasis>, delete</emphasis> <emphasis
  14. role="bold">] [</emphasis> <emphasis>, removecontents</emphasis> <emphasis
  15. role="bold">])</emphasis></para>
  16. <informaltable colsep="1" frame="all" rowsep="1">
  17. <tgroup cols="2">
  18. <colspec colwidth="80.50pt" />
  19. <colspec />
  20. <tbody>
  21. <row>
  22. <entry><emphasis>superfile</emphasis></entry>
  23. <entry>A null-terminated string containing the logical name of the
  24. superfile.</entry>
  25. </row>
  26. <row>
  27. <entry><emphasis>subfile</emphasis></entry>
  28. <entry>A null-terminated string containing the logical name of the
  29. sub-file. This may be another superfile or a foreign file or
  30. superfile.</entry>
  31. </row>
  32. <row>
  33. <entry><emphasis>delete</emphasis></entry>
  34. <entry>A boolean flag specifying whether to delete the
  35. <emphasis>subfile</emphasis> from disk or just remove it from the
  36. <emphasis>superfile </emphasis>list of files. If omitted, the
  37. default is to just remove it from the <emphasis>superfile
  38. </emphasis> list of files. <emphasis role="bold">This option should
  39. not be used if the subfile is a foreign file or foreign
  40. superfile.</emphasis></entry>
  41. </row>
  42. <row>
  43. <entry><emphasis>removecontents</emphasis></entry>
  44. <entry>A boolean flag specifying whether the contents of a
  45. <emphasis>subfile</emphasis> that is itself a superfile are
  46. recursively removed.</entry>
  47. </row>
  48. <row>
  49. <entry>Return:<emphasis> </emphasis></entry>
  50. <entry>Null.</entry>
  51. </row>
  52. </tbody>
  53. </tgroup>
  54. </informaltable>
  55. <para>The <emphasis role="bold">RemoveSuperFile </emphasis>function removes
  56. the <emphasis>subfile</emphasis> from the list of files comprising the
  57. <emphasis>superfile</emphasis>.</para>
  58. <para>This function may be included in a superfile transaction.</para>
  59. <para>Example:</para>
  60. <programlisting format="linespecific">SEQUENTIAL(
  61. STD.File.StartSuperFileTransaction(),
  62. STD.File.RemoveSuperFile('MySuperFile','MySubFile'),
  63. STD.File.FinishSuperFileTransaction()
  64. );</programlisting>
  65. </sect1>