returnInField doesn't work

Stephen Barncard stephenREVOLUTION at barncard.com
Mon Jun 27 13:26:10 EDT 2005


I don't work in anything but Roman languages, but I have noticed some 
behavior in text fields that has tripped me up before.  There can be 
a difference between the text properties of a field and the 
properties of the text contained within that field. Before hitting 
return in the field, try selecting the search text, then setting it 
manually using the TEXT menu to the desired font in the IDE (or 
script a select text and set font action) before doing the search and 
see if that makes a difference. Just a guess...something to try...


sqb

>My setup is Rev 2.6 on a G4 notebook under Mac OS 10.3.2.
>
>The problem: A very simple stack with one field containing text and
>another field for search purposes. The text is Chinese and so is, of
>course, the word typed into the search field. The script of the latter
>uses a returnInField handler to locate  text. The same script works fine
>in the case of Roman text but with the Chinese there is no reaction at
>all. Nothing happens, nothing. Not even a beep when I added  "if me is
>empty then beep" to the script.
>
>It is possible to search the text field from the message box with the
>find command but this doesn't solve the returnInField problem. Any
>suggestions most welcome.
>
>Fritz



More information about the use-livecode mailing list