AllenAdministrator
(KiX Supporter)
2017-03-06 07:04 AM
No syntax error when code is placed in between Select and first Case

Please see the following example.

 Code:
$test=1

select
  ? "HEY THIS IS IMPORTANT!!!! I Shouldn't be here but I am"
 case $test=1
   ? 1
 case $test=2
   ? 2
 case 1
   ? 3
endselect


In the example above, The line right after the select is never run. Any number of statements can be put between the SELECT and the first CASE and they will all be ignored as well. I found this completely by accident, and while it was nice that Kix just kept working despite my syntax error, it would have saved me quite a bit of time trouble shooting the problem had kix just thrown a syntax error when the script was run.


Ruud van Velsen
(Hey THIS is FUN)
2019-11-04 07:24 PM
Re: No syntax error when code is placed in between Select and first Case

... ah well, never too late to fix a solid syntax error.

I'm working on a mini-update to deal with OS-naming issues related to Windows Server 2019, and I've just fixed this one as well :-)

Thanks for the report!


NTDOCAdministrator
(KiX Master)
2019-11-04 11:01 PM
Re: No syntax error when code is placed in between Select and first Case

Thanks, Ruud


Glad to hear and see you're still with us updating


DaveLipman
(Fresh Scripter)
2019-11-04 11:08 PM
Re: No syntax error when code is placed in between Select and first Case

This KiX Phan is still here after all these years !

I am happy to see the author post.



Ruud van Velsen
(Hey THIS is FUN)
2019-11-05 08:14 AM
Re: No syntax error when code is placed in between Select and first Case

:-) :-) :-)

Glad to be here and happy to see so many diehards keeping the fire burning :-)

If there are any pressing issues that need fixing: let me know.

Ruud


PRandal
(Fresh Scripter)
2020-04-27 12:26 PM
Re: No syntax error when code is placed in between Select and first Case

I'd love to see a new release of KiXtart which correctly reports OS version names.

Any progress on this?