if then else sentence

HedleyHedley Peru
edited 4:43AM in FastReport 4.0
hello :

i have a field with EXO value

but after this procedure, the text is always red , why ???? whats wrong in the if then else sentence

thanks

hedley

procedure alum1sAS2VOnBeforePrint(Sender: TfrxComponent);
begin
IF (<alumLs."AST2V">) = 'EX0' THEN
alum1sAS2V.font.color := clBlack
ELSE
IF <alumLs."AS2V"> < <profls."NOTAMIN"> THEN
alum1sAS2V.font.color := clRed
ELSE
alum1sAS2V.font.color := clBlack
end;

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 4:43AM
    the data you are supplying does not meet one of the if conditions on subsequent passes and never gets changed back to black.
    the best bet is to change font.color in obp of band and reset it in oap of object or band.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.