Click here to Skip to main content
15,909,953 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Please provide some sample codes in SCRIPT.Net which is using
'switch' statement
Posted

This[^] is a very good article about Script.NET, it also contains a switch statement example. :)

Regards
 
Share this answer
 
Dear Nuri,

Thanks for your post.
I used the switch statement with syntax given in the
specified document, but am getting the following error:

"Parser does not recognise literal switch"

Could you help me with this please?
 
Share this answer
 
v4
Dear Anish,

I suspect that the reason for your problems with the switch statement is the version of your Script.NET.
I investigate a bit and found that getting the latest version is not very easy.
I also tried the switch statement with the version of the library from this[^] article and meet the same problem as yours.

The download link for the latest version is here[^], but it is not working! :(

I would suggest you to download some of the latest example applications from here[^] and use the library that ships with the downloaded example.

From the examples link, I've downloaded the Lesson3.zip example (it comes with ScriptDotNet.dll, version: 1.1.0.0).
There are no problems with switch statement if you test it with this library.

I hope this helps. :)

Regards
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900