Android Question Assigning a string to string variable

Heidelberger

New Member
Licensed User
Longtime User
I am relatively new to B4A but have been able to solve any problem I have had so far, except the following baffles me: Why do I get a Syntax error when trying to compile the following?

Dim WeaCode as String
Dim Wea as String
.
.
WeaCldHold = ListOfTAFElements.Get(j+LinePos)
WeaCode = WeaCldHold

If WeaCode.Contains("DZ") Then
Wea = "Drizzle."
Else If WeaCode.Contains("RA") Then
Wea = "Rain."
.
.
End If

Error parsing program.
Error description: Syntax error.
Occurred on line: 446
Wea = "Rain."

Previous similar statements work, including the previous one (Wea = "Drizzle.").

Am I missing a basic principal?
 

DonManfred

Expert
Licensed User
Longtime User
Upload your Project. In the IDE File->Export as zip
 
Upvote 0
Top