Wish Call a sub without needing brackets

Derek Johnson

Active Member
Licensed User
Longtime User
In VBA and VB you can call a sub in two ways:

either

B4X:
Call MySub(a,b,c)

or just

B4X:
MySub a,b,c

In B4A you use

B4X:
MySub(a,b,c)

(With functions the syntax is identical between VBA/VB and B4A ie result=myFunction(a,b,c).)

When you are trying to convert some code from VBA/VB to B4A you can't do a straight edit to convert the subs and you need to add in the brackets.

I've no idea if it would be a big deal to allow the alternative syntax but it would be a very convenient if you could use things like

B4X:
log a,b,c

instead of

B4X:
log(a,b,c)

There's probably a really good reason for the way things are connected with parsing the code but the alternative syntax would be very useful.

Derek
 
Top