DBCross1Row1 Highlight Condition

How i can customize DBCrossRow1 ?

279ff1f831f34be4918c6d877e2d80c8.png

264bae478a6e400f8e27020b5d67f1b1.png

thks

Comments

  • edited 8:30PM
    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 8:30PM
    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 8:30PM
    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 8:30PM
    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 8:30PM
    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 8:30PM
    Thank's SlashMaster for the attention..

    pele your code works fine! thank's >

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.