Navigation:  thinBasic Modules > Core > String handling >

RAWTEXT

Previous pageReturn to chapter overviewNext page

 

Description

 

Not really a keyword but a keyword block that allows handling of any text and/or multi line block of text without the need to include in double quote.

 

Syntax

 

RAWTEXT

  <Whatever text here>

END RAWTEXT

 

StringVariable = RAWTEXT

  <Whatever text here>

END RAWTEXT

 

Returns

 

String

All text included in RAWTEXT ... END RAWTEXT block will be returned

 

Parameters

 

Name

Type

Optional

Meaning





 

Remarks

 

Restrictions

 

Rules for using RAWTEXT / END RAWTEXT 

1.in case RAWTEXT is an assignment, it MUST begin on the same line of the assignment
2.no line continuation sign before RAWTEXT
3.after RAWTEXT there MUST be a a new line
4.END RAWTEXT MUST be on a line without any other text
5.

See also

 

Examples

 

DIM MyString AS STRING = RAWTEXT

      <r><![CDATA[

 

        The text string goes here.  Since this is a XML CDATA section,

        stuff like <> work fine too, even if definitely invalid XML.

 

      ]]></r>

END RAWTEXT