Android Question question about button objects

howard bassen

Member
Licensed User
Longtime User
it appear that a button is both an input and an output variable.

for example this is an output: btnAction.Text = "N E W"

and this is an input: If btnAction.Text = "O K" Then

Also, the statement if btnAction.Text = "O K"Then
appears to be checking the button is pressed AND the button text is "OK"

is here an explanation of this in the documentation?
 

Peter Simpson

Expert
Licensed User
Longtime User
It will only check to see if the button is pressed and the text reads "O K" in the btnAction_Click event. 'If btnAction.Text = "O K" Then' does not check for button press, only text on button.
 
Upvote 0

ivan.tellez

Active Member
Licensed User
Longtime User
Its not a "variable". ITs an OBJECT

And, as any object can have PROPERTIES

Search for objects and properties in the documentation.
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
The purpos of a Button object is to get a user action done when clicking on it which calls the Button_Click event routine.
The Button.Text property is used to tell the user what his action will do.
In MyFirstProgram from the Beginner's Guide I use the same button for two different actions and use the Button.Text property to know what action to do in the Click event.
 
Upvote 0
Top