Quantcast
Channel: SCN : Discussion List - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2881

Code is Script is behaving same even after removing an IF condition

$
0
0

I have been investigating a bug in a code and actually found the error, an IF statement that was modified with an extra condition...

 

The function is in an nvo

 

CODE

 

IF ls_variable = " " Then

...

...

END IF

 

was modified to

 

IF ls_variable = " " OR New Condition Then

...

...

END IF

 

The new condition was creating an error in the business (This coe is version controlled by PVCS)...

 

I found the error to be in the New Condition... So when we removed it (The function still behaved the same)... We checked the script difference between the 2 versions of the objects and this was the only change...

 

The amazing part is when we revert to the OLD version (The original prior to adding the New Condition the application gives the correct behaviour)...

 

So I did another scenario... I added the New Condition to the Original object and yes the behaviour changed... But to my amazement I then deleted the New Condition and the function still behaved as if the New Condition was there???

 

Any help please...

 

We know how to fix it... by  removing the New Condition but the behaviour is just puzzling me...

 

Thank You


Viewing all articles
Browse latest Browse all 2881

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>