I don't know if this is related to ABMaterial, but I encountered this in my ABMaterial project.
Just like the title says. I've setup a code for someone else to test:
it gives the following result :
orig ul: 15 orig pl: 10
trim ul: 15 trim pl: 10
string trim ul: 14 string trim pl: 10
I will cast the input.text as a string before trimming but it would be nice to know why it doesn't work directly with the Text property of ABMInput.
Just like the title says. I've setup a code for someone else to test:
B4X:
Dim inpUsername As ABMInput = mLoginContainer.Component("inpusername")
Dim inpPassword As ABMInput = mLoginContainer.Component("inppassword")
Log ("orig ul: " & inpUsername.Text.Length & " orig pl: " & inpPassword.Text.Length)
inpUsername.Text = inpUsername.Text.Trim
inpPassword.Text = inpPassword.Text.Trim
Log ("trim ul: " & inpUsername.Text.Length & " trim pl: " & inpPassword.Text.Length)
Dim iu As String = inpUsername.Text
Dim ip As String = inpPassword.Text
iu = iu.Trim
ip = ip.Trim
Log ("string trim ul: " & iu.Length & " string trim pl: " & ip.Length)
it gives the following result :
orig ul: 15 orig pl: 10
trim ul: 15 trim pl: 10
string trim ul: 14 string trim pl: 10
I will cast the input.text as a string before trimming but it would be nice to know why it doesn't work directly with the Text property of ABMInput.