Log in

View Full Version : Setting a flag in Crystal Reports 8.5


bhurst
Nov 4, 2004, 01:26 PM
I am trying to come up with some type of logic to set a falg on a condition and then print a comment depending on the flag. I need to set the flag to "No" at the beginning, check to see if my order is a backorder, set the flag to "Yes", check flag and print comment if "Yes", then be able to reset the flag on a new order.

Is there a way to do this?

joseffb
Nov 20, 2004, 10:02 AM
:cool: Yes.

Try something like this.


booleanvar bFlag:=false;


if myorder = backorder then bFlag:=true;

if bFlag=true then "My Order is on Backorder -- Darnit!";


:cool:

joseffconsulting.com