Bug? Compiler Bug?

Discussion in 'Bugs & wishlist' started by Robert Valentino, Apr 10, 2015.

Similar threads

B4A Tutorial GPS tutorial
B4A Tutorial FirebaseAdMob and User Consent
B4A Tutorial [java] Creating libraries for Basic4android
B4A Tutorial Service Modules
B4A Tutorial Gnss Status Updates
  1. Robert Valentino

    Robert Valentino Well-Known Member Licensed User

    I had these lines of code in my program

    If sGPS_SendTo <> Null Then IsPaused(sGPS_SendTo) Then 
    Log("GPS SendTo is Paused")
    End If
    What I meant to type is this

    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


  2. DonManfred

    DonManfred Expert Licensed User

    You should have posted this thread in Bug/Wishlist forum
  3. Robert Valentino

    Robert Valentino Well-Known Member Licensed User

    Sorry about that. Will not happen again. Thanks for moving
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice