WebEntryField.Caption

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Property (As String )
aWebTextControl.Caption = newStringValue
or
StringValue = aWebTextControl.Caption

New in 2020r1

Supported for all project types and targets.

The caption of a control.

Notes

This property can be set inside the IDE or programmatically.

Sample Code

This code sets the caption of the control to "OK".

Me.Caption = "OK"

This code in the Pressed event handler for a WebButton changes the text of the button each time it is pressed:

If Me.Caption = "Blue" Then
Me.Caption = "Red"
Else
Me.Caption = "Blue"
End If