The following code output is incorrect:
TextBox1.Text = "alma"
If True And TextBox1.Text Not Like "a*" Then Print True Else Print False
Output: True (Should be False.)
But the following is good:
If True And If TextBox1.Text Not Like "a*" Then Print True Else Print False
Otput: False
And if I use string:
Dim almatext As String
TextBox1.Text = "alma" almatext = TextBox1.Text
If True And almatext Not Like "a*" Then Print True Else Print False
Output: False
I use Gambas 3.5.1 on Ubuntu 13.10 (amd64).
Comment #1
Posted on Dec 31, 2013 by Swift WombatI check it, and this bug is exist in the revision 6037.
Comment #2
Posted on Dec 31, 2013 by Swift RhinoThis is actually a compiler bug. Fixed in revision #6041.
Status: Fixed
Labels:
Version-3.5.0
Type-Bug
Priority-Medium
OpSys-Any
Dist-Any
Arch-Any
Desktop-Any
GUI-Any