Forum Discussion

marina_kachko's avatar
marina_kachko
Occasional Contributor
11 years ago

Reading/Writing to TextEditor

Hi,

How to get and set text properties of text editor box?

How to send an ascii code char like 'end of line' or 'enter'

 

thanks, Marina 

2 Replies

  • Hi Marina,

     

    Spy the required object using "Object Sky" and then under the "Properties" Tab, you can search for Text/Value.

     

    Also under the "Methods" tab, search if get_Text and set_Text functions are available.

     

    If they are listed, then you can get the required object and use these methods on them.

     

    For eg.

     

    Set Obj =  <Your_App_Obj>

    Get_text = Obj.Get_Text    OR 

    Get_text = Obj.Text

     

    'To set the value

    Obj.Set_Text("your value")

     

     

    To user "Enter", you can use the .Keys function.

     

    For Eg,

    Obj.Keys([Enter])

     

    To find out the values to be entered for other options like Tab/Clear/Delete etc, type Keys on your editor and press the F1 key. It will open the help page which list out all the options. 

     

    Hope this information is helpful!