Bug? 5.0 (and 3.8 aswell I believe) module naming issue

sorex

Expert
Licensed User
Hello,

I had some weird error while adding a new module to a project I just started.

It seems that B4A doesn't like that a code module name start with a numeric character.
Let's say 4321_class .

It adds the module and your see it in the modules list (and B4A source) but you immediatly get an error during the adding or when clicking on the module in the module window.

Is this by design?

The class is also versioned 4.9 instead of 5.
 

sorex

Expert
Licensed User
why not?

it could show a warning instead of adding it without being usable.
 

sorex

Expert
Licensed User
@Erel, you're right when using doing it from scratch in the IDE.

When I copy a class in the shared moduled file to a file with another name (appname_game or something) then there doesn't seem to be a check after the file dialogue.

Maybe a forced rename could be done there. but that's something low prio now that I now that it doesn't like a number as first char.
 
Top