Value-VarString.xml 1.2 KB

12345678910111213141516171819202122232425262728293031
  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="VARSTRING">
  5. <title>VARSTRING</title>
  6. <para><emphasis> </emphasis><emphasis role="bold">VARSTRING<indexterm>
  7. <primary>VARSTRING</primary>
  8. </indexterm><indexterm>
  9. <primary>VARSTRING value type</primary>
  10. </indexterm>[</emphasis><emphasis>n</emphasis><emphasis
  11. role="bold">]</emphasis></para>
  12. <para>A null-terminated character string containing <emphasis>n</emphasis>
  13. bytes of data. If <emphasis>n </emphasis>is omitted, the string is variable
  14. length to the size needed to contain the result of the cast or passed
  15. parameter. You may use set indexing into any string to parse out a
  16. substring.</para>
  17. <para>The upper size limit for any VARSTRING value is 4GB.</para>
  18. <para>Example:</para>
  19. <programlisting>VARSTRING3 MyString := 'ABC';
  20. // declares MyString a 3-byte null-terminated string</programlisting>
  21. <para>See Also: <link linkend="LENGTH">LENGTH</link>, <link
  22. linkend="TRIM">TRIM</link>, <link linkend="Set_Ordering_and_Indexing">Set
  23. Ordering and Indexing</link></para>
  24. </sect1>