Multiple Extensions in InputFile

Features wanted...
Post Reply
PeterH
Posts: 2827
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Multiple Extensions in InputFile

Post 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.

admin
Site Admin
Posts: 66294
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Multiple Extensions in InputFile

Post 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.

admin
Site Admin
Posts: 66294
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Multiple Extensions in InputFile

Post 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.

PeterH
Posts: 2827
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Post 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!

admin
Site Admin
Posts: 66294
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post 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...

j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Post 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:
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

admin
Site Admin
Posts: 66294
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post 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"?

PeterH
Posts: 2827
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Post 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.

Post Reply