SetReadOnly.xml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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="SetReadOnly">
  5. <title>SetReadOnly</title>
  6. <para><emphasis role="bold">STD.File.SetReadOnly<indexterm>
  7. <primary>STD.File.SetReadOnly</primary>
  8. </indexterm><indexterm>
  9. <primary>File.SetReadOnly</primary>
  10. </indexterm><indexterm>
  11. <primary>SetReadOnly</primary>
  12. </indexterm>(</emphasis> <emphasis> filename </emphasis> <emphasis
  13. role="bold">, </emphasis> <emphasis>flag </emphasis> <emphasis
  14. role="bold">)</emphasis></para>
  15. <informaltable colsep="1" frame="all" rowsep="1">
  16. <tgroup cols="2">
  17. <colspec colwidth="80.50pt" />
  18. <colspec />
  19. <tbody>
  20. <row>
  21. <entry><emphasis>filename</emphasis></entry>
  22. <entry>A null-terminated string containing the logical name of the
  23. file.</entry>
  24. </row>
  25. <row>
  26. <entry><emphasis>flag</emphasis></entry>
  27. <entry>A boolean value indicating which way to set the read-only
  28. attribute of the <emphasis>filename</emphasis>.</entry>
  29. </row>
  30. </tbody>
  31. </tgroup>
  32. </informaltable>
  33. <para>The <emphasis role="bold">SetReadOnly </emphasis>function toggles the
  34. read-only attribute of the filename. If the <emphasis>flag</emphasis> is
  35. TRUE, read-only is set on.</para>
  36. <para>Example:</para>
  37. <programlisting format="linespecific">A := STD.File.SetReadOnly('Fred',TRUE);
  38. //set read only flag on
  39. </programlisting>
  40. </sect1>