This topic is locked

Condition

9/19/2005 2:28:49 PM
ASPRunnerPro General questions
R
roller author

I am trying to get a balance that is negative to appear red.
Sergey helped me before but version 3.2 appears to do some things differently and copying and pasting the previous solution causes an error. Based on previous solution I think the code that needs to be modified is the following:
<%

if IsBinaryField(rs.Fields("Balance")) or Format("Balance")=FORMAT_DATABASE_FILE then

Response.Write CreateImageControl(rs, "Balance", "")

else

strData = GetData(rs.Fields("Balance"), "Number")
Response.Write ProcessLargeText(strData)
end if

%>
Can anyone help with the correct code to get Balance to appear red when negative?
Thanks

Sergey Kornilov admin 9/19/2005

Did you see email last week?

R
roller author 9/19/2005

Sorry, I didn't receive an e-mail and just thought I'd try here in case I should have posted the question rather than e-mailed direct. Not sure where I stand now. <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=6032&image=1&table=forumreplies' class='bbc_emoticon' alt=':unsure:' />