finding hte position in the field when backspaceKey hit

J. Landman Gay jacque at hyperactivesw.com
Mon Jun 10 18:30:43 EDT 2013


On 6/10/13 5:07 PM, Dr. Hawkins wrote:
> On Mon, Jun 10, 2013 at 2:57 PM, Dar Scott <dsc at swcp.com> wrote:
>> on backspaceKey
>>     put the selectedChunk into field "log"
>>     pass backspaceKey
>> end backspaceKey
>>
>> However, I have a feeling I don't really understand what you are doing.
>
> You are getting a different result than I am, at least if I single-step.
>
> I get something like "char 900 to 915 of field 4" as the result of the
> selectedChunk.

If you're stepping through in the debugger, the field being referenced 
is the script editor and the selectedchunk is the hilited line you're 
looking at.

Set a breakpoint after you get the selectedchunk to get more accurate 
results.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list