I'm new in B4I
I write:
#if B4A
If area2(area2.Length-2) = 1 Then
Model_box.Text = "W480"
Type_box.Text = "DSC-MOB-C"
Else
Model_box.Text = "W480"
Type_box.Text = "DSC-MOB-O"
End If
#Else If B4I
If area2(area2.Length-2) = 1 Then
Model_box.Text = "W480"
Type_box.Text = "DSC-MOB-C"
Else
Model_box.Text = "W480"
Type_box.Text = "DSC-MOB-O"
End If
#End If
In B4I I got an error: EXPECTED NON CODE BLOCK, but with B4A everthings works well.
I'm new in B4I
I write:
#if B4A
If area2(area2.Length-2) = 1 Then
Model_box.Text = "W480"
Type_box.Text = "DSC-MOB-C"
Else
Model_box.Text = "W480"
Type_box.Text = "DSC-MOB-O"
End If
#Else If B4I
If area2(area2.Length-2) = 1 Then
Model_box.Text = "W480"
Type_box.Text = "DSC-MOB-C"
Else
Model_box.Text = "W480"
Type_box.Text = "DSC-MOB-O"
End If
#End If
In B4I I got an error: EXPECTED NON CODE BLOCK, but with B4A everthings works well.
I suppose area2 is an array. I cannot understand why is this happening. This is a long shot but you may have to use lower case letters in the '#' statements.
Another strange thing one rerror highlighted is in English and one is in Italian.
Array definition:
#If B4A
Private area1(11) As Byte
Private area2(32) As Byte
#Else If B4I
#Else If B4I
Public area1() As Byte
area1 = Array As Byte(0,0,0,0,0,0,0,0,0,0,0)
Public area2() As Byte
area2 = Array As Byte(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)
#End If