Bug? Bug with Select Case parser

NeoTechni

Well-Known Member
Licensed User
Longtime User
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:
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:
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".
 
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!
 
Back
Top