Arf Well-Known Member Licensed User Longtime User Sep 4, 2014 #1 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. Code: 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
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. Code: 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
klaus Expert Licensed User Longtime User Sep 4, 2014 #2 Code: If Results.pef > 1000 Then MAX_X = 1200 MAX_Y = 2000 Else MAX_X = 600 MAX_Y = 1000 End If Upvote 0