Cursor control within a field

Mark Schonewille m.schonewille at economy-x-talk.com
Sat Sep 5 17:31:06 EDT 2009


Dear Severin,

Here is a simple example:

on foo
   put the selectedChunk into myChunk
   put "bla" after fld "The Field"
   if myChunk  is not empty then select myChunk
end foo

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com

Download Snapper Screen Recorder at http://snapper.economy-x-talk.com

On 5 sep 2009, at 22:50, Severin Swensen wrote:

> I am trying to figure out how to save the location of the insertion  
> point in a field so that after updating that same field I can leave  
> the cursor where it was originally.
>
> I saw something similar in the "Tale of two Revolutions" session  
> presented by Robert Cailliau in his Currency conversion demo. As he  
> changed the values to convert it updated and left the cursor in the  
> same position.
>
> Thanks for the help.
> Severin





More information about the Use-livecode mailing list