Inserting a character (LC 7.0.1)

Graham Samuel livfoss at mac.com
Sun Nov 2 15:25:54 EST 2014


Thanks Jacque, as I didn't think anything had been selected, I never thought of 'the selection'. In fact the LC dictionary says

> The selection is a reference to the currently selected text.

Which doesn't seem to accord with a flashing cursor in a text string and nothing highlighted, i.e. nothing selected - but there it is.

Thanks again - I can move on.

Graham


> On 2 Nov 2014, at 19:19, J. Landman Gay <jacque at hyperactivesw.com> wrote:
> 
> Use "the selection" :
> 
> put myChar after the selection 
> 
> 
> On November 2, 2014 10:56:06 AM CST, Graham Samuel <livfoss at mac.com> wrote:
>> 
>> if "field" is in the focusedObject then
>>     put myChar after the focusedObject
>> end if
>> 
>> But of course 'after' ignores the position of the insertion point. I
>> can't see how to bring the insertion point into it. 
> -- 
> Jacqueline Landman Gay         |     jacque at hyperactivesw.com
> HyperActive Software           |     http://www.hyperactivesw.com
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list