how to set the textStyle of word 1 of the selection?

Andre.Bisseret Andre.Bisseret at inria.fr
Mon Mar 15 09:03:16 EDT 2010


Thank you Richmond for your prompt answer.

But with "the first word" instead of "word 1" I get the same errors.  
Does not work

Any other idea?

André


Le 15 mars 10 à 13:42, Richmond Mathewson a écrit :

> On 15/03/2010 14:28, Andre.Bisseret wrote:
>> Bonjour,
>>
>> In a text field (lock text set to true) I select a couple of words
>>
>> Then,
>>
>> put word 1 of the selection  -- returns the first selected word in  
>> the message box as expected
>>
>> But,
>> set the textStyle of word 1 of the selection to "link" --(or bold  
>> etc)
>> does not work.
>> I got errors:
>> "can't find object" -- !!?
>> "can't set object property"
>>
>> set the textStyle of the selection to "link"
>> works well, but I would like to set the textStyle of a part of the  
>> selection only
>>
>> What am I missing?
>>
>> Any help much appreciated
>>
> set the textStyle of the first word to "link"
>
> Love, Richmond.
> _______________________________________________
> 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