Page 1 of 1

[Done] Is this a Line Continuation Bug?

Posted: Fri Mar 08, 2024 5:56 pm
by swhite
Hi

The following line does not match the brackets correctly when the split over multiple lines. It works fine if the code is all on one line. I am using PB6.03 64bit

https://www.dciphercomputing.com/update ... ntinue.png

Simon

Re: Is this a Line Continuation Bug?

Posted: Sat Mar 09, 2024 10:43 am
by mk-soft
It's hard to copy and try from the screenshot

Re: Is this a Line Continuation Bug?

Posted: Sat Mar 09, 2024 7:19 pm
by swhite
The first Bool() identifies matching brackets. The second version has problems.

Code: Select all

Bool(""=taRcvd(#KA_EMAIL) And Not SQLSeek(KHSite("pid")\ValueS+Left(lcCard,10),"KHCard","PID",KHCard()) And Not SQLSeek(KHSite("pid")\ValueS+Left(lcCard,9),"KHCard","PID",KHCard()) And Not SQLSeek(KHSite("pid")\ValueS+Left(lcCard,6),"KHCard","PID",KHCard()) And Not SQLSeek(KHSite("pid")\ValueS+LSet(taRcvd(#KA_ISO),6,"?"),"KHCard","PID",KHCard()) And Not SQLSeek(KHSite("pid")\ValueS+Left(lcCard,3)+"000","KHCard","PID",KHCard()) And Not SQLSeek(Left(lcCard,10),"KHCard","CardNo",KHCard()) And Not SQLSeek(Left(lcCard,9),"KHCard","CardNo",KHCard()) And Not SQLSeek(Left(lcCard,6),"KHCard","CardNo",KHCard()) And Not SQLSeek(LSet(taRcvd(#KA_ISO),6,"?"),"KHCard","CardNo",KHCard())) ; Card ISO must exist in IPN Database (Kardall can have 9 Or 10 digits i.e. 6 digit ISO plus 3 Or 4 digit account#)

Bool(""=taRcvd(#KA_EMAIL) And Not SQLSeek(KHSite("pid")\ValueS+Left(lcCard,10),"KHCard","PID",KHCard()) And Not SQLSeek(KHSite("pid")\ValueS+Left(lcCard,9),"KHCard","PID",KHCard()) And 
     Not SQLSeek(KHSite("pid")\ValueS+Left(lcCard,6),"KHCard","PID",KHCard()) And Not SQLSeek(KHSite("pid")\ValueS+LSet(taRcvd(#KA_ISO),6,"?"),"KHCard","PID",KHCard()) And 
     Not SQLSeek(KHSite("pid")\ValueS+Left(lcCard,3)+"000","KHCard","PID",KHCard()) And Not SQLSeek(Left(lcCard,10),"KHCard","CardNo",KHCard()) And Not SQLSeek(Left(lcCard,9),"KHCard","CardNo",KHCard()) And 
     Not SQLSeek(Left(lcCard,6),"KHCard","CardNo",KHCard()) And Not SQLSeek(LSet(taRcvd(#KA_ISO),6,"?"),"KHCard","CardNo",KHCard())) ; Card ISO must exist in IPN Database (Kardall can have 9 Or 10 digits i.e. 6 digit ISO plus 3 Or 4 digit account#)



Re: Is this a Line Continuation Bug?

Posted: Sat Mar 09, 2024 11:22 pm
by normeus
Here is a less mind boggling version:

Code: Select all

If ((2 = 21) And 
    (( Not 86) = (a )))
  
the first parenthesis of the 2nd line get's the wrong color

Norm.

Re: Is this a Line Continuation Bug?

Posted: Sat Feb 22, 2025 9:18 pm
by Fred
Seems to work as expected, can anybody confirm ?

Re: Is this a Line Continuation Bug?

Posted: Tue Mar 11, 2025 7:43 pm
by Andesdaf
Works for me, too.

Re: [Done] Is this a Line Continuation Bug?

Posted: Tue Mar 11, 2025 8:38 pm
by Fred
Thanks !