dbTalk Databases Forums  

Conditional text color

comp.databases.filemaker comp.databases.filemaker


Discuss Conditional text color in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
James Sutphin
 
Posts: n/a

Default Conditional text color - 08-21-2010 , 12:01 AM






A while back somebody had asked about the conditional changing of field
fill colors. I haven't looked into that, but some might find this
useful, or not:

The following Case function tests the value of a data field, and if it
is greater than or equal to a specified value, it prints the number in
red. If it is less than or equal to a specified value, it prints the
number in blue. If the number is within range, it prints in black.

Case ( DATAFIELD „ 138 ; TextColor ( DATAFIELD ; RGB ( 255 ; 0 ; 0 ) ) ;
DATAFIELD ¾ 98 ; TextColor ( DATAFIELD ; RGB ( 0 ; 0 ; 255 ) ) ;
TextColor ( DATAFIELD ; RGB ( 0 ; 0 ; 0 ) ) )

Reply With Quote
  #2  
Old   
Bill
 
Posts: n/a

Default Re: Conditional text color - 08-21-2010 , 06:11 AM






In article <jsutphin-4D0150.01014721082010 (AT) news (DOT) windstream.net>,
James Sutphin <jsutphin (AT) windstream (DOT) net> wrote:

Quote:
A while back somebody had asked about the conditional changing of field
fill colors. I haven't looked into that, but some might find this
useful, or not:

The following Case function tests the value of a data field, and if it
is greater than or equal to a specified value, it prints the number in
red. If it is less than or equal to a specified value, it prints the
number in blue. If the number is within range, it prints in black.

Case ( DATAFIELD „ 138 ; TextColor ( DATAFIELD ; RGB ( 255 ; 0 ; 0 ) ) ;
DATAFIELD ¾ 98 ; TextColor ( DATAFIELD ; RGB ( 0 ; 0 ; 255 ) ) ;
TextColor ( DATAFIELD ; RGB ( 0 ; 0 ; 0 ) ) )
Recent version of FMP -- starting with 9, I think -- have Conditional
Formatting, which provides for changing of various formatting aspects
depending on conditions. The user selects the field or object, specifies
the condition to trigger the formatting and specifies the formatting to
be used based on the conditions. Conditional Formatting is a choice in
the Format menu when you are in the Layout mode and have selected a
field or other object.

See the Help file and user guide for more details

Of course if you are hosting your database on a network, users of
earlier versions of FileMaker will not see the effects of conditional
formatting -- just like any other new feature not supported on earlier
versions.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.