logo

Live Production Software Forums


Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
ron2210  
#1 Posted : Wednesday, December 16, 2020 4:25:30 AM(UTC)
ron2210

Rank: Newbie

Groups: Registered
Joined: 8/4/2020(UTC)
Posts: 7
Man
India
Location: Mumbai

Hi,

I'm getting Error "Statements and labels are not valid between 'Select Case' and first 'Case'"
when trying scripting with "Select Case" command in vMix Script

Code:
dim strTest as string = "B"
Select Case strTest
	Case "A"
		Console.WriteLine("Character is A")
	Case "B"
		Console.WriteLine("Character is B")
End Select


Please let me know the proper sytnax for Select Case statements in vMix

Thanks in Advance
Janne Adolfsson  
#2 Posted : Tuesday, January 12, 2021 12:06:06 AM(UTC)
Janne Adolfsson

Rank: Newbie

Groups: Registered
Joined: 2/19/2015(UTC)
Posts: 8
Location: Östersund, Sweden

Thanks: 2 times
I have the same issue.
Papo  
#3 Posted : Tuesday, January 12, 2021 11:34:50 AM(UTC)
Papo

Rank: Member

Groups: Registered
Joined: 6/16/2020(UTC)
Posts: 20
Peru

Thanks: 5 times
Greetings, I have not been able to do it but if it is only that you can use the if else or the switch or choose or try to put all the visual basic namespace ..... maybe the select word is a command exclusively used for vmix , it can be the same if you put vmix inside the script as the name of a variable for example .... this should be clarified ..... mmmm
translated from spanish to english
ron2210  
#4 Posted : Tuesday, January 12, 2021 1:32:00 PM(UTC)
ron2210

Rank: Newbie

Groups: Registered
Joined: 8/4/2020(UTC)
Posts: 7
Man
India
Location: Mumbai

I have been using else if for my script,
but the language of the error sounded like there was a syntax problem.

If anyone has any details please clarify
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.