Roman Hubacek, 26.04.2006 17:23:
function openPasFromDpr2()
  local path = props['FileDir']  --without trailing /\
  local file = editor:textrange(0, editor.Length)
  for uses in string.gfind(file, "uses.*;") do
    for c in string.gfind(uses, "\'([^\']*)\'") do
      scite.Open(path .. '\\' .. c)
    end
  end
end

thanks roman, this works well.
can i prevent the buffer-change or chnging back to the buffer which contains the original-dpr-file?

Prevent changing buffer is AFAIK not possible. You can change back by scite.Open original file (props['FilePath']). When file is opened, it just does buffer change.

-- Roman

_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to