[Done] Is this a Line Continuation Bug?

Post bugs related to the IDE here
swhite
Enthusiast
Enthusiast
Posts: 783
Joined: Thu May 21, 2009 6:56 pm

[Done] Is this a Line Continuation Bug?

Post 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
Simon White
dCipher Computing
User avatar
mk-soft
Always Here
Always Here
Posts: 6202
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Is this a Line Continuation Bug?

Post by mk-soft »

It's hard to copy and try from the screenshot
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
swhite
Enthusiast
Enthusiast
Posts: 783
Joined: Thu May 21, 2009 6:56 pm

Re: Is this a Line Continuation Bug?

Post 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#)


Simon White
dCipher Computing
normeus
Enthusiast
Enthusiast
Posts: 470
Joined: Fri Apr 20, 2012 8:09 pm
Contact:

Re: Is this a Line Continuation Bug?

Post 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.
google Translate;Makes my jokes fall flat- Fait mes blagues tombent à plat- Machte meine Witze verpuffen- Eh cumpari ci vo sunari
Fred
Administrator
Administrator
Posts: 18153
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Is this a Line Continuation Bug?

Post by Fred »

Seems to work as expected, can anybody confirm ?
Andesdaf
User
User
Posts: 83
Joined: Sun Mar 22, 2009 2:53 pm
Location: GER, Saxony

Re: Is this a Line Continuation Bug?

Post by Andesdaf »

Works for me, too.
Fred
Administrator
Administrator
Posts: 18153
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

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

Post by Fred »

Thanks !
Post Reply