4D v16

SVG_APPEND_TEXT_TO_TEXTAREA

Home

 
4D v16
SVG_APPEND_TEXT_TO_TEXTAREA

SVG_APPEND_TEXT_TO_TEXTAREA 


 

SVG_APPEND_TEXT_TO_TEXTAREA ( svgObject ; addedText ) 
Parameter Typ   Beschreibung
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.

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))



Siehe auch 

SVG_New_textArea
SVG_SET_TEXTAREA_TEXT

 
EIGENSCHAFTEN 

Produkt: 4D
Thema: Text
Nummer: 65883

 
GESCHICHTE 

Erstellt: 4D v12

 
ARTIKELVERWENDUNG

4D SVG ( 4D v16)