I'm wanting to alter textstyle as I type and although I've solved it with a 'kludge', I was wondering if there was a better way of achieving this?
Specifically what I'm wanting to achieve is that if a specific character is entered then the colour of that character is then changed.
I've managed to achieve this with the following code:
Code: Select all
on rawkeyup
if the last char of fld"Notes" is "z" then
set the forecolor of the last char of fld"Notes" to red
else
set the forecolor of the last char of fld"Notes" to black
end if
end rawkeyup
I guess what I want to code is something like this (which of course doesn't work!)...
Code: Select all
...
if rawkeyup is "z" then
set the forecolor of rawkeyup to red
...
Thanks,
Glenn