richviewAction.open without knowing the filterindex
Posted: Tue May 24, 2016 5:18 pm
Hello,
I want to load a file via command line - using RichViewActions.
code:
...
actionOpen1.loadFile (rve, filename, ...)
What filter-Index should I take?
Okay, it's easy:
ext := UpperCase (ExtractFileExt (filename);)
if ext = '.RTF' then
fIndex := 1
...
but, is there an easier way?
Best regards
Marco (wandogau)
I want to load a file via command line - using RichViewActions.
code:
...
actionOpen1.loadFile (rve, filename, ...)
What filter-Index should I take?
Okay, it's easy:
ext := UpperCase (ExtractFileExt (filename);)
if ext = '.RTF' then
fIndex := 1
...
but, is there an easier way?
Best regards
Marco (wandogau)