CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2008
    Posts
    1

    Resolved conditional color change

    I am trying to conditionally change PART of a string to a different color.

    similar to:

    stringvar sResult;
    if InStr({Table.Name}, '~~') > 0 then
    sResult := "First part of {Table.Name} string "
    sResult := [Change color to Red] + "~~next part of {Table.Name} string"
    sResult := [Change color to Black] + "last part of {Table.Name} string"
    else
    sResult := {Table.Name}

    Anyone know if this is possible?
    Any help is much appreciated.
    Ian

  2. #2
    Join Date
    Jul 2004
    Location
    Chennai, India
    Posts
    1,064

    Re: conditional color change

    You can create different formulae fields with respective texts and format those fields to have desired colors on the format section
    Madhivanan

    Failing to plan is Planning to fail

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured