Menu

Strange compiler error ...

2018-04-11
2018-04-11
  • Bertrand BAROTH

    Bertrand BAROTH - 2018-04-11

    Hello again ...

    This code causes a
    Controle.gcb (284): Error: Array/Function DELAI_X_100MS has not been declared
    I must either include a colon netween the "Else" and the 'Delai ... " or put the Delai on another line.
    Note that there is no error at line 265, where a subroutine is called after an "Else", too ...
    And if I use following syntax :
    If ((Marche_avant = 0) And ( Vitesse_PV = Vitesse_descente)) Then Delai_x_100ms(45)
    Else Delai_x_100ms(15)
    (without End If)
    the error occurs at line 283 (the line of the "Then")

    Thanks for any answer or explanation !

     

    Last edit: Bertrand BAROTH 2018-04-11
  • Anobium

    Anobium - 2018-04-11

    Error:

    Else Delai_x_100ms(15)

    Should read

      Else
          Delai_x_100ms(15)
    

    I am not sure what the PreProcessor has not pick this up as an error. I will add to the list of issues.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.