Managing specific file names is no problem.
But all files starting with ö&... should be handled in a special way (z&... in the test program below)
The files should not be handled by Switch / Default
Is it possible?
In the test program below 1 and 2 works as desire, (but not z& or z&123)
Code: Select all
#SingleInstance force
Loop
{ InputBox xInput, Give a value, % "Enter (1 or 2 or z& ...)" ,, 200, 150
switch xInput
{ Case "1" : Gosub One
Case "2" : Gosub Two
Case subStr(xInput, 1, 2) = "z&" : Gosub Next
Default : MsgBox % "Wrong input .: " xInput
}
}
ExitApp
One:
MsgBox % "One `nxInput .: " xInput
Return
Two:
MsgBox % "Two `nxInput .: " xInput
Return
Next:
MsgBox % "Next `nxInput .: " xInput
Return
ESC:: ExitApp