[B4X] [XUI] AS Settings
Introducing a new library that allows you to create your own settings page with minimal code. This library comes equipped with automatic saving and loading features, making it incredibly easy to manage your settings. It supports booleans, free text, numbers, comboboxes, action buttons and more...
You need AS_Settings V2.00+ for this example.
In the following example, PropertyName_2 and PropertyName_3 are set to the same value as PropertyName_1. e.g. PropertyName_2 and PropertyName_3 are dependent on PropertyName_1, if PropertyName_1 = False then the other 2 should also be False.
B4X:
Private Sub AS_Settings1_ValueChanged(Property As AS_Settings_Property, Value As Object)
Select Property.PropertyName
Case "PropertyName_1"
AS_Settings1.MainPage.SetProperty_Boolean("PropertyName_2",Value)
AS_Settings1.MainPage.SetProperty_Boolean("PropertyName_3",Value)
Case Else
Log("PropertyName: " & Property.PropertyName & " Value: " & Value)
End Select
End Sub
Last edited: