This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20 R7
SVG_APPEND_TEXT_TO_TEXTAREA
|
SVG_APPEND_TEXT_TO_TEXTAREA ( svgObject ; addedText ) | ||||||||
Parameter | Type | Description | ||||||
svgObject | SVG_Ref |
![]() |
Reference of text element | |||||
addedText | Text |
![]() |
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))
Product: 4D
Theme: Text
Number:
65883
Created: 4D v12
4D SVG Component ( 4D v20 R7)