Contents - Index


ElementValueById

 

Type: Property

Access: Write

Parameters: String Id String Value

 

Set the Value of the element identified by Id.

 

This triggers the OnSetElementValueById event on completion.

 

Example in DataFlex:

 

   Object oFillFormButton is a Button

     Set Location to 199 40

     Set Label to "Fill Form"

     Set peAnchors to anBottomLeft

   

     Procedure OnClick

       Send ConnectBrowser to oDocument

       Set ComElementValueByName of oDocument "username" to "Mr.Smith"

       Set ComElementValueByName of oDocument "password" to "supersecret"

     End_Procedure

   End_Object