Page 1 of 1

Multiple Extensions in InputFile

Posted: 08 Feb 2008 22:34
by PeterH
It's me again :roll:

In InputFile, is there a possibility to select 2 (or more) extensions? I'm looking for .xys *and* .txt and find no chance to specify both.

And (sorry - 2nd wish here) any chance for:
::load , Label
to run Script named Label from *current* Scriptfile? (Primitive way to include "Subroutines" or so...)
Could also be ::Run or ::Call or whatever.

Re: Multiple Extensions in InputFile

Posted: 09 Feb 2008 09:13
by admin
PeterH wrote:It's me again :roll:

In InputFile, is there a possibility to select 2 (or more) extensions? I'm looking for .xys *and* .txt and find no chance to specify both
I had planned this anyway.

There are two options now:

(1) have them all in one list (pattern = "*.txt;*.xys")
(2) have one list per pattern and switch between the lists via the Open Dialog's dropdown.

I guess (1) is more practical.

Re: Multiple Extensions in InputFile

Posted: 09 Feb 2008 09:54
by admin
PeterH wrote:And (sorry - 2nd wish here) any chance for:
::load , Label
to run Script named Label from *current* Scriptfile? (Primitive way to include "Subroutines" or so...)
Could also be ::Run or ::Call or whatever.
Nice idea. I give it a chance. Might be a bit hairy... (recursion lurks...) but is surely a practical thing. I called it ::sub.

Posted: 09 Feb 2008 23:02
by PeterH
@multiple extensions:
As it is now it's exactly as I wanted it - in this case :roll:
If maybe you could add each single of the extensions to be selectable by dropdown, then the user has the choice to select one or another. But as default I would keep the combined list! (If I list 3 extensions I normally want to see 3 extensions...)

@sub
So. You called it sub!
For a sub I miss parameters to supply to the sub, and even to return...
:lol: :lol: :D :) :? :oops:
:twisted: 8)

And IF, THEN, ELSE, DO, END, FOR, WHILE
Sorry - seems I understood something wrong :roll:

But to be serious again, ::sub works like a charme! Thanks for that!

Posted: 10 Feb 2008 08:30
by admin
PeterH wrote:@sub
So. You called it sub!
For a sub I miss parameters to supply to the sub, and even to return...
:lol: :lol: :D :) :? :oops:
:twisted: 8)
:D That follow up was dead sure as hell. The programmer's reflexes are uncontrollable. I know, it's screaming for parameters and returns -- later. Now (in the next weeks) my job is to feed the current level of scripting to the masses. If they swallow, I will add more spice...

Posted: 10 Feb 2008 08:46
by j_c_hallgren
admin wrote::D That follow up was dead sure as hell. The programmer's reflexes are uncontrollable. I know, it's screaming for parameters and returns -- later. Now (in the next weeks) my job is to feed the current level of scripting to the masses. If they swallow, I will add more spice...
And here Don thought that he had written a file manger! :roll: It's now become a whole new language! XYS...the new Perl! :wink:

Posted: 10 Feb 2008 08:57
by admin
PeterH wrote:@multiple extensions:
As it is now it's exactly as I wanted it - in this case :roll:
If maybe you could add each single of the extensions to be selectable by dropdown, then the user has the choice to select one or another. But as default I would keep the combined list! (If I list 3 extensions I normally want to see 3 extensions...)
I could but... wasn't my slogan "keep it simple"?

Posted: 10 Feb 2008 11:31
by PeterH
admin wrote:I could but... wasn't my slogan "keep it simple"?
...simple for you :P
...as I only would notice this extension if I look for it (by opening dropdown). That doesn't make it more complicated for me :roll:

But don't get me wrong: for me it's ok as it is now.