Dynamic font color in text boxes

RainaRaina Member Posts: 18
edited 2001-03-27 in Navision Financials
I would like to know if it is possible to change the font color displayed in a text box based on a conditional statement. Thanks

Comments

  • Dave_CoxDave_Cox Member Posts: 83
    yes with the format trigger

    Look at the code from the Chart of accounts list
    Account Name text box

    OnFormat(VAR Text : Text[260]) <img border="0" title="" alt="" src="images/smiles/icon_wink.gif" />
    IF "Account Type" <> "Account Type"::Posting THEN
    CurrForm.Name.UPDATEFONTBOLD := TRUE;

    Just use the same formula with UPDATEFONTCOLOR!
    Look in the help for the exact code!

    [This message has been edited by Dave Cox (edited 27-03-2001).]
    MindSource (UK) Limited
    Navision Service Partner

    david@mindsource.co.uk
    info@mindsource.co.uk
Sign In or Register to comment.