Other B4J v10.7 BETA with optional parameters, jServer 5 and more - Erel    
Aug 26, 2026   
(26 reactions). The first one is optional parameters.
Improvements:
Optional parameters: https://www.b4x.com/android/forum... keyword.
Various libraries updated with default parameters.
sqlite-jdbc.jar included in the internal...
link: <= 0 Then
ThrowException("Parameters must be positive.")
End If
Return x...
link: I'm very happy about improvements in exception handling. Would you please provide an example for...
link:
https://www.b4x.com/android/forum/threads/171906/#content
I missed that post, thank you 😁...
B4A Tutorial [B4X] Optional sub parameters - Erel    
Aug 26, 2026   
(26 reactions)This is a new feature that will be added to the B4X tools.
Optional sub parameters are parameters that are declared with a default value. If an optional parameter is omitted when the sub is called...
link: Hi all, I love that B4X keeps coming up with new updates such as this Optional sub parameters...
link: a parameter?
BytesToString("text here".GetBytes("UTF8"),,5)
other
Public Sub...
link: at least i think there needs to be like a way to add 2 parameters but keep a specific parameter...
Other New release: B4i v10.31 with optional parameters, code bundle and more - Erel    
Sep 15, 2026   
(15 reactions) B4A and B4J in the last couple of months.
Optional parameters: https://www.b4x.com/android/forum/threads... with default parameters.
Errors in referenced b4xlibs are marked with their library and module.
B4ih2xml...
link: Edit: v10.31 was released. The IDE was updated with a fix for a debugger bug. No need to update the ...
link:
I use a local builder, do I need to update that?
Yes, you should update the builder. It includes r...
link: Nice! Quick question - I use a local builder, do I need to update that? I seem to recall a while ago...
Other New beta: B4i v10.3 with optional parameters, code bundle and more - Erel    
Sep 3, 2026   
(19 reactions) B4A and B4J in the last couple of months.
Optional parameters: https://www.b4x.com/android/forum... ThrowException keyword.
Various libraries updated with default parameters.
Errors in referenced b4xlibs... method that returns a read-only sub-list.
New #Macro / comment link options: https://www.b4x.com/android...
link: I don't expect this to be a long beta so both options are good....
link: B4i at the same time, or I can begin with B4A?
sure I won't use any new features (optional...
Other New release: B4A v14.0 with optional parameters - Erel    
Sep 2, 2026   
(46 reactions)B4A v14.0 follows B4J v10.7 and adds the optional parameters feature to B4X programming language... the potential for new language features. The first one is optional parameters.
'From:
Dim b...
link: Hi Erel,
As usual plenty of interesting new features!
Many thanks for the job you do to help us in o...
link:
will include some kind of "Option Explicit"
There will not be an "option explicit...
link: . I hope the automatic type inference will include some kind of "Option Explicit" (as it's...
Other New release: B4J v10.7 with optional parameters, jServer 5 and more - Erel    
Sep 2, 2026   
(30 reactions) is optional parameters.
'From:
Dim b() As Byte = "aaaa".GetBytes("UTF-8"....Download(url)
'To:
Dim j As HttpJob
j.Initialize
j.Download(url)
Improvements:
Optional parameters: https://www.b4x.com/android/forum/threads/171906/#content
jServer 5 based on Jetty 12.1: https....
Exception.StackTrace and ThrowException keyword.
Various libraries updated with default parameters...
Wish Another plea for optional parameters - NeoTechni    
Aug 18, 2017   
(3 reactions) WindowTitle
End Sub
Whereas with optional parameters, I could just do:
'InputType: 0=decimal, 1... the parameter list of the function declaration to get the optional parameter's default values
-when...
That way you don't have to support optional parameters however Android/Java does it, you'd be making your own method which would also let you have any parameters optional, not just the last ones...Since my program is so large, it's getting increasingly difficult to add parameters to...
Wish Optional Parameters - LWGShane    
Mar 26, 2017   
(3 reactions)Has there been any updates regarding Optional Parameters for B4X? It would be a very useful feature!...
link: /forum/pages/results/?query=Optional+Parameters&prefix=5...
B4A Question Optional parameters - NeoTechni    
Nov 22, 2011   
(3 reactions) Optional parameters
This is a biggie,
We need to be able to do
sub Functionname(optional value as int=-1)
end sub
Hell, just assume it's optional if there is a = defaultvalue in...
link: optional parameters, you'd write the sub once and it'd handle all those combinations.
Your...
link: optional parameters, you'd write the sub once and it'd handle all those combinations....
link: of Overloading. I am not going to get into any arguments around overloading vs optional arguments...
Wish I would like to have Optional Parameters for Subs - Widget (first post)    
Jul 15, 2016   
(2 reactions)Erel,
Is it difficult to implement optional parameters for Subs? From the thread that was started 4 years ago a lot of people thought it was a good idea.
When you have time, can you re-evaluate...
link: I also didn't say that it will be added in a future version. I wrote:
"This feature may be...
link: Why do you misquote me? I never said that it will be added in the next version.
Please don't do...
Page: 1  
2  
3  
4  
5  
6