I'm trying to make the first letter in a field red - while the rest of the text remains black. The text in this field results from numbers entered in a previous field. So for example if 02 is entered in the Code field: A - AGRICULTURE, FORESTRY AND FISHING is displayed, or say 09 is entered in the code field, then B - MINING will be displayed in this field, 44 - H - ACCOMMODATION AND FOOD SERVICES, etc etc.
The first letter is a code division signifier, so I'd like that first letter A, B, C, etc. to stand out and be red.
This is what I've done:
form1.firstPage.ANZSICDiv::initialize - (JavaScript, client)
var FirstChar = (Rtrim(this), 1);
FirstChar.fontColor = "255,0,0";
this = FirstChar;
But, it doesn't work.
Any suggestions please?
from way... underground at Parkes - central West NSW - Australia