Scrolling List Field

Mark Schonewille m.schonewille at economy-x-talk.com
Thu Aug 17 18:05:25 EDT 2006


John,

If you want to enter text after the text insertion point in a field:

     put "foo" after the selection

or slightly more advanced:

on insertString theString
   if the selectedChunk is not empty then
     put theString into myString
     put word 6 to -1 of the selectedChunk into myFld
     put word 4 of the selectedChunk into myCharNr
     put myString after the selection
     select after char myCharNr+length(myString) of myFld
     return true
   else
     return false
   end if
end insertString

Best,

Mark

--

Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Download ErrorLib at http://economy-x-talk.com/developers.html and  
get full control of error handling in Revolution.



Op 17-aug-2006, om 21:02 heeft John Baxter het volgende geschreven:

> Now all I need to do is be able to insert chords or Tab at the cursor
> location in the mainstack, rather than the char being added to the  
> end of
> the last line.
>
> John




More information about the use-livecode mailing list