This topic is locked

Center when null

5/4/2009 4:21:25 AM
PHPRunner General questions
R
Ravengaard author

Hi, I have been trying to find a solution to my little problem for quite some time now.

My problem is that I want to align my output as centered when there is no value to be shown. (Yes, I know this sounds stupid)

I have set up an IF that checks if the value is Null, if true it shows "- - - - -". I want values to be aligned to the left, and null values to be centered. Anyone know how to fix this?
I am currently using this code in the custom option:
strtoupper($value);

If ($value=="")

$value = "- - - - -";

Else
First, it makes everything upper-case. Then checks if there is a null, if true, replace with "- - - - -".
Is there any way to incoperate the centered and left align into this code?

Do I need to scrap it alltogether?

J
Jane 5/4/2009

Hi,
you can change field style in the List page: After record processed event on theEvents tab.

Here is a sample:

http://www.asprunner.com/forums/index.php?showtopic=6413