Another very basic one, I'm afraid.
The link https://www.b4x.com/android/help/core.html#string_length says that "length" is a core string function. However, the following will not compile
Dim D As String * 2, M As String * 2, Y As String * 4
Dim StartDt As String, EndDt As String, L As Int
..
Y = EY.Text
..
If D <> "" And M <> "" And Y <> "" Then StartDt = Y & "-" & M & "-" & D
L = Length(Y)
It gives the error "Undeclared variable 'length' was used before it was assigned any value".
It's not a variable - it's meant to be built in...
Any ideas?
Thanks
The link https://www.b4x.com/android/help/core.html#string_length says that "length" is a core string function. However, the following will not compile
Dim D As String * 2, M As String * 2, Y As String * 4
Dim StartDt As String, EndDt As String, L As Int
..
Y = EY.Text
..
If D <> "" And M <> "" And Y <> "" Then StartDt = Y & "-" & M & "-" & D
L = Length(Y)
It gives the error "Undeclared variable 'length' was used before it was assigned any value".
It's not a variable - it's meant to be built in...
Any ideas?
Thanks