Bug? Bug with Select Case parser

NeoTechni

Well-Known Member
Licensed User
Longtime User
B4X:
Dim temp As Int

B4X:
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

B4X:
case < 16
B4X:
case is < 16
also fails
 
Last edited:

NeoTechni

Well-Known Member
Licensed User
Longtime User
The problem is back

B4X:
Select Case Event.Index

Index is just an int
I can even replace the code with

B4X:
dim temp = Event.Index
Select Case Event.Index

Same problem

The next line in this case is just
B4X:
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:

ivan.tellez

Active Member
Licensed User
Longtime User
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".
 

Motz

New Member
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!
 
Top