B4J Question [BANAnoVuetifyAD3] VField only numbers, enabled and event

angel_

Well-Known Member
Licensed User
Longtime User
I have a VField (Textfield) in a VForm, I have three questions:

- Despite having Enabled = False in the Abstract Designer, the field can still be edited
- How can I restrict the field to only numbers with decimals?
- I try to do it next but I can't see the result:

B4X:
Sub Class_Globals
    Public vuetify As VuetifyApp
    Public page As VueComponent
    Public path As String
    Public name As String = "layout1"
    Private banano As BANano            'ignore
    
    Private txtValue1 As VField        'ignore
    Private txtValue2 As VField        'ignore
End Sub

Private Sub txtValue1_KeyPress (e As BANanoEvent)
    txtValue2.Text = 2 * txtValue1.Text
End Sub
 
Top