PDA

View Full Version : Funky error on calc field


ABC123

Howard G. Cornett
08-17-2004, 02:31 PM
See the attached message. I get it when I try to create this calculated field:

bar = = ""img SRC=\"c:/TEAM/redstripe.gif\" ALT=\"_________\" WIDTH=\""+ alltrim(str(Rating/maximum(Rating)*400))+"\" HEIGHT=\"5\" BORDER=\"0\" ""

I plan on using it to display a bar graph using HTML. It is meant to be only a character field. When I enter it in the expression builder it shows it is OK but does not display the last part starting at border (see attachment, bottom). When I try to save it, I get the error I mentioned at the beginning.

At first I thought maybe it was because I started the component in the beta, but I get the same error when I create a new component as well.

Thanks in advance for any help.

Howard

Cheryl Lemire
08-17-2004, 04:08 PM
It looks like you are missing some + signs

Howard G. Cornett
08-17-2004, 04:24 PM
Where?

Cheryl Lemire
08-17-2004, 06:29 PM
Sorry Howard, I just looked at my code and the + signs are ok. I am not using the component for my image so I think you need to try what Selwyn has suggested with all of the = signs that you have.