[Gambas-user] [Gambas Bug Tracker] Bug #1256: Gambas compiler give error on valid code

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Wed Feb 28 03:44:11 CET 2018


http://gambaswiki.org/bugtracker/edit?object=BUG.1256&from=L21haW4-

Comment #1 by Benoît MINISINI:

This is not valid code, because it means:

If bTest = (True And sStr) Then

and 'And' requests an integer, not a string.

The compiler now detects these kind of errors, and you wanted to write:

If (bTest = True) And (sStr <> "") Then

Or, far better :

If bTest And If sStr Then

Benoît MINISINI changed the state of the bug to: Rejected.




More information about the User mailing list