4D v14

SVG_APPEND_TEXT_TO_TEXTAREA

Home

 
4D v14
SVG_APPEND_TEXT_TO_TEXTAREA

SVG_APPEND_TEXT_TO_TEXTAREA 


 

SVG_APPEND_TEXT_TO_TEXTAREA ( svgObject ; addedText ) 
Parameter Type   Description
svgObject  SVG_Ref in Reference of text element
addedText  Text in Text to be added

The SVG_APPEND_TEXT_TO_TEXTAREA command is used to append text to the textual content of the text object designated by svgObject. If svgObject is not a "textArea" object, an error is generated. 

Line return characters are automatically replaced by "<tbreak/>" elements.

Example  

Adding the following text:

  //Display outlines using 'rect' element
 $Dom_rect:=SVG_New_rect($Dom_SVG;10;10;500;200;0;0;"blue:50";"none")
 
  //Creating the text
 $Dom_text:=SVG_New_textArea($Dom_SVG;"It is today, ";10;30;500;200;"'Arial'";36;0;3)
 
  //Adding the date and 2 CR
 SVG_APPEND_TEXT_TO_TEXTAREA($Dom_text;String(Current date)+"\r\r")
 
  //Lastly, adding the current time
 SVG_APPEND_TEXT_TO_TEXTAREA($Dom_text;"and it was exactly "+String(Current time))

 
PROPERTIES 

Product: 4D
Theme: Text
Number: 65883

 
HISTORY 

Created: 4D v12

 
SEE ALSO 

SVG_New_textArea
SVG_SET_TEXTAREA_TEXT

 
ARTICLE USAGE

4D SVG Component ( 4D v13)
4D SVG Component ( 4D v12)
4D SVG Component ( 4D v14)