Hello all, I have been writing below for B4A and now i have to convert everything to B4X (Multiplatform for both B4A and B4i) :
Select Case iType
Case "TEXT"
sEditTxt(iIndex).InputType=sEditTxt(iIndex).INPUT_TYPE_TEXT
Case "TEXTCAPITALISE"
sEditTxt(iIndex).InputType=0x00082000 'DISABLE SPELL CHECK & AUTO CAPITAL
Case "EMAIL"
sEditTxt(iIndex).InputType=0x00080020 'DISABLE SPELL CHECK & EMAIL
Case "NUMBER"
sEditTxt(iIndex).InputType=sEditTxt(iIndex).INPUT_TYPE_NUMBERS
Case "PHONE"
sEditTxt(iIndex).InputType=sEditTxt(iIndex).INPUT_TYPE_PHONE
Case "PASSWORD"
sEditTxt(iIndex).InputType=0x00080000 'DISABLE SPELL CHECK
sEditTxt(iIndex).PasswordMode=True
End Select
Questions :
1) Are there anything like this in B4XView? I can convert sEditTxt(iIndex) to B4xview
2) If there is nothing like this in B4xview then how do i do the same to B4i?
* In B4i i noticed there is .TYPE_EMAIL_ADDRESS / .TYPE_NUMBER_PAD/ ... etc but i dont know how to set it ( MyTextField.InputType=MyTextField.TYPE_EMAIL_ADDRESS ) <<--- ERROR *No InputType
Thanks