Android Question [AS Settings] Change Action property text

Blueforcer

Well-Known Member
Licensed User
Longtime User
I want to change the value of the action property on the fly without rebuilding the mainpage.

For a switch i found this way
B4X:
AS_Settings1.MainPage.GetProperty("mqttclient").View.As(B4XSwitch).Value=False

can someone help me to do this with the action property, lable doenst seem to be the right view?

thanks in advise
 

Alexander Stolte

Expert
Licensed User
Longtime User
The right way is this:
B4X:
AS_Properties.PutProperty("PropertyName_5","Test")
AS_Settings1.MainPage.Refresh

But you can do this way with the attached b4xlib.
B4X:
AS_Settings1.MainPage.GetProperty("PropertyName_5").View.As(B4XView).Text = "Test2"
 

Attachments

  • AS_Settings.b4xlib
    26.2 KB · Views: 5
Upvote 0
Top