OK. Sorry to be such a pain. This is obviously FAR more complex than I first thought. I have a custom font with letters that join together. I need Rev to detect what the User types and replace accordingly. http://www.clubtype.co.uk/revDev-abc/abc-rev.jpg So I started to make a list of what script/functions are needed. Then I can deal with one (tiny) step at a time.
Here's my list which may already be incorrect, but here goes... "edtText" (field script): on keydown --triggers function list QUESTION: HOW IS A FUNCTION CALLED FROM A KEYDOWN EVENT? (I know everything about a function from the Rev Document Search, but not how to CALL it). I TRIED THIS BUT TO NO AVAIL... on keyDown send "lookupchar" to card "InsertionCard" end keyDown TextEditorCard (card scripts): function offset --to determine: where is the insertion point QUESTION: I DON'T KNOW WHAT THE USER WILL/HAS ENTERED. CAN THIS FUNCTION DEAL WITH THAT? CAN SOMEONE GIVE ME AN EXAMPLE OF HOW TO TEST WHETHER THE CHARACTER TO THE LEFT IS SMALLER THAN CHARACTER TO RIGHT? JACQUELINE HAS OUTLINED IT, BUT NOT SPECIFICALLY. function lookupchar -- to return input or output char function lookupchar tchar get offset (tchar, field "input) if it = 0 then return tchar it of field "output" end lookupchar THIS WILL NOT WORK UNLESS THE OFFSET IS KNOWN! Any help just to get me started would be much appreciated. Thanks, Adrian ______________________ Club Type http://www.clubtype.co.uk [EMAIL PROTECTED] _______________________________________________ use-revolution mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
