returnInField doesn't work
ron barber
rbarber at yhb.att.ne.jp
Mon Jun 27 19:14:09 EDT 2005
Hi Friedrich,
I'm sure Kenji's suggestion will do what you want to do. It might be
helpful for you to read the find command in the docs to understand the
various types of find and why one works for unicode and others don't.
Along with Kenji's method, I also use offset:
put the number of chars of the text of me into endchar
put offset(findword,fld id 1003) into startchar
if startchar is not 0 then
select char startchar to startchar+endchar-1 of fld id 1003
end if
hth
Ron
On Jun 28, 2005, at 1:55 AM, Kenji Kojima wrote:
> Friedrich,
>
> Try this.
> It works for Japanese. I don't know Chinese.
>
> on returnInField
> find string me in field id 1003
> end returnInField
>
> --
> Kenji Kojima
> http://www.kenjikojima.com/
>
>
>
> On Jun 27, 2005, at 12:18 PM, Friedrich F. Grohmann wrote:
>
>> Ron,
>>
>> Thanks for telling me that you
>>
>>
>>> search Japanese (and Chinese) within a fld successfully. Can you post
>>> your script so maybe we can figure out what is not happening
>>> correctly?
>>>
>>
>> I'm most happy to do this. The script itself is of utter simplicity:
>>
>> on returnInField
>> find the text of me in field id 1003
>> end returnInField
>>
>> I cannot imagine what could be wrong with that since it works with
>> Roman
>> text in other stacks. The font of the two fields involved is
>> specified as
>> "Apple LiGothic Medium,Chinese", and it is possible to search text in
>> both of them via the message box. So what could be the problem with
>> returnInField?
>>
>> Thanks in advance,
>> Fritz
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>>
>>
>
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list