NeoTechni Well-Known Member Licensed User Longtime User Oct 29, 2011 #1 Code: Copy Dim temp As Int Code: Copy Compiling code. Error Error compiling program. Error description: Missing parameter. Occurred on line: 679 Select Case temp Word: case I've had this happen a few times now. Temp has no parameters. The same code works elsewhere, it just decides to stop working It seems like it has a problem with the next line actually, cause if I remove that it continues fine Code: Copy case < 16 Code: Copy case is < 16 also fails Last edited: Oct 29, 2011
Code: Copy Dim temp As Int Code: Copy Compiling code. Error Error compiling program. Error description: Missing parameter. Occurred on line: 679 Select Case temp Word: case I've had this happen a few times now. Temp has no parameters. The same code works elsewhere, it just decides to stop working It seems like it has a problem with the next line actually, cause if I remove that it continues fine Code: Copy case < 16 Code: Copy case is < 16 also fails
klaus Expert Licensed User Longtime User Oct 29, 2011 #2 Select Case temp Case is VB6 code In B4A you must use: Select temp Case Best regards.
NeoTechni Well-Known Member Licensed User Longtime User Oct 29, 2011 #3 I've been using select case temp everywhere else just fine though
NeoTechni Well-Known Member Licensed User Longtime User Jul 14, 2013 #4 The problem is back Code: Copy Select Case Event.Index Index is just an int I can even replace the code with Code: Copy dim temp = Event.Index Select Case Event.Index Same problem The next line in this case is just Code: Copy Case 0'selection EDIT: It was cause one of the case lines were wrong. I did case functionname and forgot the parameters It'd be nice if it mentioned the actual error instead of the select case line Last edited: Jul 14, 2013
The problem is back Code: Copy Select Case Event.Index Index is just an int I can even replace the code with Code: Copy dim temp = Event.Index Select Case Event.Index Same problem The next line in this case is just Code: Copy Case 0'selection EDIT: It was cause one of the case lines were wrong. I did case functionname and forgot the parameters It'd be nice if it mentioned the actual error instead of the select case line
klaus Expert Licensed User Longtime User Jul 14, 2013 #5 In Basic4Android you should use: Code: Copy Select Event.Index and not Code: Copy Select Case Event.Index as already posted in post #2. Best regards.
In Basic4Android you should use: Code: Copy Select Event.Index and not Code: Copy Select Case Event.Index as already posted in post #2. Best regards.
NeoTechni Well-Known Member Licensed User Longtime User Jul 14, 2013 #6 klaus said: In Basic4Android you should use: Code: Copy Select Event.Index and not Code: Copy Select Case Event.Index as already posted in post #2. Best regards. Click to expand... As i already said before, either works fine
klaus said: In Basic4Android you should use: Code: Copy Select Event.Index and not Code: Copy Select Case Event.Index as already posted in post #2. Best regards. Click to expand... As i already said before, either works fine
ivan.tellez Active Member Licensed User Longtime User Jul 21, 2013 #7 B4A cant compile VB Code. If you have sintax errors in a case, the compiler will say that the error is in the "Select" Line. This is not valid B4A code "case < 16" nor "case is < 16".
B4A cant compile VB Code. If you have sintax errors in a case, the compiler will say that the error is in the "Select" Line. This is not valid B4A code "case < 16" nor "case is < 16".
M Motz New Member Aug 26, 2014 #8 I had the same problem! B4A doesn´t accept "case< 16" You have to write "case< 16,17,18, an so on" I hope you have a limit!
I had the same problem! B4A doesn´t accept "case< 16" You have to write "case< 16,17,18, an so on" I hope you have a limit!
Erel B4X founder Staff member Licensed User Longtime User Aug 26, 2014 #9 This syntax is not supported. Only discrete values are allowed. No operators. As a workaround you can use: Code: Copy Select True Case x < 16 ... Case x > 20 ... End Select
This syntax is not supported. Only discrete values are allowed. No operators. As a workaround you can use: Code: Copy Select True Case x < 16 ... Case x > 20 ... End Select