Robert Valentino Well-Known Member Licensed User Longtime User Apr 10, 2015 #1 I had these lines of code in my program Code: Copy If sGPS_SendTo <> Null Then IsPaused(sGPS_SendTo) Then Log("GPS SendTo is Paused") End If What I meant to type is this Code: Copy If sGPS_SendTo <> Null And IsPaused(sGPS_SendTo) Then Log("GPS SendTo is Paused") End If Wanted the word AND but somehow typed Then. Why was I allowed two Then's in one line? Is the first a real valid statement or a compiler bug? The code compiled and ran fine. Well fine is a relative statement. The first set of code thought my sGPS_SendTo was Not Null which it wasn't but it Thought the Object sGPS_SendTo was Paused but it was not BobVal BobVal
I had these lines of code in my program Code: Copy If sGPS_SendTo <> Null Then IsPaused(sGPS_SendTo) Then Log("GPS SendTo is Paused") End If What I meant to type is this Code: Copy If sGPS_SendTo <> Null And IsPaused(sGPS_SendTo) Then Log("GPS SendTo is Paused") End If Wanted the word AND but somehow typed Then. Why was I allowed two Then's in one line? Is the first a real valid statement or a compiler bug? The code compiled and ran fine. Well fine is a relative statement. The first set of code thought my sGPS_SendTo was Not Null which it wasn't but it Thought the Object sGPS_SendTo was Paused but it was not BobVal BobVal
DonManfred Expert Licensed User Longtime User Apr 10, 2015 #2 You should have posted this thread in Bug/Wishlist forum
Robert Valentino Well-Known Member Licensed User Longtime User Apr 10, 2015 #3 Sorry about that. Will not happen again. Thanks for moving