DBCross1Row1 Highlight Condition

How i can customize DBCrossRow1 ?

279ff1f831f34be4918c6d877e2d80c8.png

264bae478a6e400f8e27020b5d67f1b1.png

thks

Comments

  • edited 10:13PM
    Hello wcardosomg,

    u could use the on before Print-Event of the Cell

    Basic-Script
    sub DBCross1Row2OnBeforePrint(Sender)
    if sender.text <> "NCG" then sender.font.color = clred                                                                                                                                 
    end Sub
    

    greetz
  • edited 10:13PM
    Hello wcardosomg,

    u could use the on before Print-Event of the Cell

    Basic-Script
    sub DBCross1Row2OnBeforePrint(Sender)
    if sender.text <> "NCG" then sender.font.color = clred                                                                                                                                 
    end Sub
    

    greetz

    Thanks for reply Slashmaster, but it don't works, see:

    a194ca89a4f74602957b194af4b28f40.png

    74a4d62102b04648bf8d690bc5bdf5fb.png
  • edited 10:13PM
    try exactly:
    if Sender.text = 'NCG' then Sender.font.color := clred
    

    the text from "dbcross1row1.text" isn't the same like "Sender.text" at the Moment "onbeforeprint".
  • edited 10:13PM
    try exactly:
    if Sender.text = 'NCG' then Sender.font.color := clred
    

    the text from "dbcross1row1.text" isn't the same like "Sender.text" at the Moment "onbeforeprint".

    Slashmaster, thank's for the help, but don't works, see the error

    8f2d31b4bfb841aaa44c0d13a853c5c3.png
  • edited 10:13PM
    I Try this, report compile, but dont works...

    if TfrxMemoView(Sender).Text = 'NCG' then
    begin
    TfrxMemoView(Sender).font.color:=clred;
    end;

  • edited December 2016
    Hello again,

    well.. this should work! :lol:" border="0" alt="laugh.gif" />" alt=">" />>
    if tfrxmemoview(sender).value = 'NCG' then tfrxmemoview(sender).font.color :=clred
    

    i code with BasicScipt and there works
    if sender.value = "NCG" then sender.font.color = clred
    

    fine... [img]style_emoticons/<#EMO_DIR#>/blink.gif" style="vertical-align:middle" emoid=":blink:" border="0" alt="blink.gif" /> *edit* use VALUE instead of TEXT[/img]
  • edited December 2016
    if Trim(TfrxMemoView(Sender).Text) = 'NCG' then
         TfrxMemoView(Sender).font.color := clred;
    
  • edited 10:13PM
    Thank's SlashMaster for the attention..

    pele your code works fine! thank's >

Leave a Comment