Text Function

Parent Previous Next

TextFunction

This function returns a string value indicating the text of the object.


Function Definition:


            string Text  {get; set;}


.     get: Permits the user to read the string value.

.     set: Permits the user to write the string value.



To configure this function, follow the steps below:


1.   In an object event, configure the Text function: ObjectName.Text;


2.   During the execution of RunTime, run the configured event.



Example Get:


In the graphic document, the user has one Check-Box object (named as GraphicObject1). In a Text-Box object (named as GraphicObject2) the user configures the MouseUp event with the following event:


GraphicObject2.Text = GraphicObject1.Text;


In this event, the GraphicObject2 will exhibit the text (label) exhibit by the Check-Box object.


Example Set:


In the graphic document, the user has one Check-Box object (named as GraphicObject1). In a Button object (named as GraphicObject2) the user configures the MouseUp event with the following event:


GraphicObject1.Text = "ADISRA";


In this event, the GraphicObject1 will now exhibit the text (label) Adisra.



 

Note: This property exists only to the following objects:

.     Button

.     Check-Box

.     GroupBox

.     Label

.     Radio-Button

.     Text-Box