RemoveOwnedSubFiles.xml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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="RemoveOwnedSubFiles">
  5. <title>RemoveOwnedSubFiles</title>
  6. <para><emphasis role="bold">STD.File.RemoveOwnedSubFiles<indexterm>
  7. <primary>STD.File.RemoveOwnedSubFiles</primary>
  8. </indexterm><indexterm>
  9. <primary>File.RemoveOwnedSubFiles</primary>
  10. </indexterm><indexterm>
  11. <primary>RemoveOwnedSubFiles</primary>
  12. </indexterm>(</emphasis> <emphasis> superfile</emphasis><emphasis
  13. 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>Return:<emphasis> </emphasis></entry>
  26. <entry>Null.</entry>
  27. </row>
  28. </tbody>
  29. </tgroup>
  30. </informaltable>
  31. <para>The <emphasis role="bold">RemoveOwnedSubFiles </emphasis>function
  32. removes all owned sub-files from the specified superfile. These are only
  33. removed if they are soley owned by the superfile. If a subfile is co-owned,
  34. (i.e.,a member of any other superfile), then the removal is ignored.</para>
  35. <para>This function may be included in a superfile transaction.</para>
  36. <para>Example:</para>
  37. <programlisting format="linespecific">SEQUENTIAL(
  38. STD.File.StartSuperFileTransaction(),
  39. STD.File.RemoveOwnedSubFiles('MySuperFile'),
  40. STD.File.FinishSuperFileTransaction()
  41. );</programlisting>
  42. </sect1>