Neil Hodgson wrote:
fun void CopyText=2420(int length, string text)

Implementations seems to be consistent.
But I have to write:

function CopyPath()
   editor:CopyText(props.FilePath, string.len(props.FilePath))
end

to get it working.
What I am missing here?

   The Lua extension understands about the combination of string and
length arguments and knows how long Lua strings are so the call is
just
    editor:CopyText(props.FilePath)

Aha! And it is even documented, I just forgot it...
I should reread this page (hard to find, not linked from the SciTE main page...).

--
Philippe Lhoste
--  (near) Paris -- France
--  http://Phi.Lho.free.fr
--  --  --  --  --  --  --  --  --  --  --  --  --  --
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to