[Gambas-user] The logical operators in the debug window are not displayed correctly

Jussi Lahtinen jussi.lahtinen at gmail.com
Fri Jan 25 20:21:53 CET 2019


I think the IDE uses Qt5 if it is available, thus it might make a
difference.
The attachment was sent... so I don't know what you are talking about.


Jussi

On Fri, Jan 25, 2019 at 11:41 AM Francisco Martinez <fmfdario at gmail.com>
wrote:

> Hi Jussi.
>
> I thought that the mail program had sent the message with the attachment
> to the international list, but it seems that it has not. The message is in
> the sent tray.
> It may be a Gmail problem with attachments without using a cloud storage
> service where to add the attachment and link it there.
>
> As for using QT4 or using QT5 the program is very small, I do not think
> it's a concrete problem of these. If it were a more complex program, it
> would be different.
> I always use gb.gui.qt to avoid problems with the versions.
>
> Now there is a novelty. The expression parser is no longer the same. I
> made a capture. Now with Gambas 3.12.2
> the expression looks complete and the result. It has changed to how it
> looked in other versions of Gambas.
>
> I show you an image. It is totally different from the previous one.
>
>
>
> Before when I used debug mode and executed step by step. The expression
> was shown automatically, now it must be added.
> In one way or another, the problem seems to have been resolved in a
> different way. :-?
>
> Regards
>
> El 24/1/19 a las 19:50, Jussi Lahtinen escribió:
>
> It's also most convenient way to provide the code. It saves time of people
> who try to help you.
>
> Unfortunately I still can't reproduce the problem. However I just noticed
> that I don't have Qt5 on this system (only Qt4).
> So, please someone using Qt5, can you please try reproduce the problem?
>
> 1. Put break point to line   If (x >= unrect.Left) And (x <= unrect.Right)
> And (y >= unrect.Top) And (y <= unrect.Bottom) Then
> 2. Run the project.
> 3. At the bottom of the IDE, select Debugging tab.
> 4. Try to add comparisons (<= and >=) for x and y. Is the = sign missing?
>
>
> Jussi
>
>
> On Thu, Jan 24, 2019 at 10:37 AM Francisco Martinez <fmfdario at gmail.com>
> wrote:
>
>> I did not think the whole project was necessary. Here it is.
>>
>> Regards.
>>
>> El 24/1/19 a las 0:36, Jussi Lahtinen escribió:
>>
>> Please send it as source archive to catch everything exactly as in your
>> computer.
>> IDE --> Project --> Make --> Source archive
>>
>>
>> Jussi
>>
>> On Thu, Jan 24, 2019 at 1:08 AM Francisco Martinez <fmfdario at gmail.com>
>> wrote:
>>
>>> Hi Jussi.
>>>
>>> It is a small code. The code tries to find out if any part of a
>>> rectangle is inside another rectangle.
>>> You will need to create a project that uses the qt component.
>>>
>>> The code uses words in Spanish. Here it is.
>>>
>>> [code]
>>> Public Sub Form_Open()
>>>
>>>   Dim rect1 As New Rect
>>>   Dim rect2 As New Rect
>>>   Dim rectangulos As New Rect[][]
>>>
>>>   With rect1
>>>     .x = 10
>>>     .y = 10
>>>     .W = 100
>>>     .H = 200
>>>   End With
>>>
>>>   With rect2
>>>     .x = 5
>>>     .y = 10
>>>     .W = 300
>>>     .H = 200
>>>   End With
>>>
>>>   rectangulos.Add([rect1, rect2])
>>>   rectangulos.Add([rect2, rect1])
>>>
>>>   Print SuperPosicion(rect1, rect2)
>>>
>>>   ' Print rect1.Contains(rect2.x, rect2.y)
>>>   ' Print rect2.Contains(rect1.X, rect1.y)
>>>
>>> End
>>>
>>> Public Sub SuperPosicion(prota As Rect, unrectangulo As Rect) As Boolean
>>>   '
>>>
>>>   Dim rec1 As New Rect
>>>   Dim rec2 As New Rect
>>>   Dim tmprec1 As New Rect[]
>>>
>>>   With rec1
>>>     .X = prota.x
>>>     .Y = prota.y
>>>     .W = prota.w
>>>     .H = prota.h
>>>   End With
>>>
>>>   With rec2
>>>     .x = unrectangulo.x
>>>     .y = unrectangulo.y
>>>     .w = unrectangulo.w
>>>     .h = unrectangulo.h
>>>   End With
>>>
>>>   For Each tmprec1 In [[rec1, rec2], [rec2, rec1]]
>>>
>>>     If ((PuntoDentroDeRect(tmprec1[0].Left, tmprec1[0].Top, tmprec1[1]))
>>> Or
>>>         (PuntoDentroDeRect(tmprec1[0].Left, tmprec1[0].Bottom,
>>> tmprec1[1])) Or
>>>         (PuntoDentroDeRect(tmprec1[0].Right, tmprec1[0].Top,
>>> tmprec1[1])) Or
>>>         (PuntoDentroDeRect(tmprec1[0].Right, tmprec1[0].Bottom,
>>> tmprec1[1]))) Then Return True
>>>     Next
>>>     Return False
>>>
>>> End
>>>
>>> Public Sub PuntoDentroDeRect(x As Integer, y As Integer, unrect As Rect)
>>> As Boolean
>>>
>>>   If (x >= unrect.Left) And (x <= unrect.Right) And (y >= unrect.Top)
>>> And (y <= unrect.Bottom) Then
>>>     Return True
>>>   Else
>>>     Return False
>>>   Endif
>>>
>>> End
>>> [/code]
>>>
>>> Regards.
>>>
>>> El 23/1/19 a las 19:56, Jussi Lahtinen escribió:
>>>
>>> I can't reproduce the problem either... perhaps something in your code
>>> triggers it. Can you send small project to reproduce the problem?
>>>
>>> Jussi
>>>
>>> On Wed, Jan 23, 2019 at 11:14 AM Francisco Martinez <fmfdario at gmail.com>
>>> wrote:
>>>
>>>> Hi everyone!.
>>>>
>>>> I hope you can see the image. Some operators do not display correctly
>>>> in the debug console window.
>>>>
>>>>
>>>>
>>>> When I use >= is shows only > for example.
>>>>
>>>> ¿ Wheres is "=" sometimes ?. :-)
>>>>
>>>> Best Regards.
>>>>
>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net
>>>> ]----
>>>>
>>>
>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>>>
>>>
>>>
>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>>>
>>
>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>>
>>
>>
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20190125/7f262c07/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Watch_Expressions_changed.png
Type: image/png
Size: 36802 bytes
Desc: not available
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20190125/7f262c07/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: WatchExpressionDebug.png
Type: image/png
Size: 31466 bytes
Desc: not available
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20190125/7f262c07/attachment-0003.png>


More information about the User mailing list