Android Question If Greater than (structure element)

Arf

Well-Known Member
Licensed User
Longtime User
a silly question possibly:

I have a structure and wish to test the size of an element, I am getting a compilation error and I am not sure why.

B4X:
Type PktResults(pef As short, LAST500V As Short
    ,SPARE(28) As Byte)

Dim Results As PktResults



    If Results.pef > 1000
        Then
            MAX_X = 1200
            MAX_Y = 2000
        Else
            MAX_X = 600
            MAX_Y = 1000
    End If

The error is:
Error description: Syntax error (missing parameter).
I also get errors flagged for End If and all sorts of things but I guess they due to whatever I'm doing wrong with that comparison line
 
Top