Beta B4A v13.3 BETA is available for download

Status
Not open for further replies.

Erel

B4X founder
Staff member
Licensed User
Longtime User
I'm happy to release a new BETA version of B4A. This update adds a new #Macro attribute, for the declaration of IDEs macros, as well as other new features and improvements:

1748432922420.png


  • #Macro attribute. Defined in B4XMainPage of Main modules. Format: <type>, <name>, <link>. Type can be Title or After Save. More to come in the future. Link is based on the comment link feature: https://www.b4x.com/android/forum/threads/119897/#content
    Examples:
    B4X:
    #Macro: Title, B4XOrderedMap Doc, https://www.b4x.com/android/forum/threads/b4x-b4xorderedmap-get-first-item-nth-item-and-last-item.118642/
    #Macro: Title, B4XPages Export, ide://run?File=%B4X%\Zipper.jar&Args=Project.zip
    'open Objects folder after saving project:
    #Macro: After Save, open objects folder, ide://run?File=%WINDIR%\explorer.exe&Args=%PROJECT%\Objects

  • New command line options for the IDE:
    -INI=<ini file path> - allows running the IDE with an alternative INI file. Note that that standard INI file is stored under: C:\Users\<user name>\AppData\Roaming\Anywhere Software\b4xV5.ini
    -INI_<property key here>=<property value>
    Example:
    B4X:
    "c:\Program files\Anywhere Software\b4a\b4a.exe" -INI_CodeTheme=Dark "-INI_TitleNotEmpty=This is the second IDE: $FILE_NAME$"
  • New TitleEmpty and TitleNotEmpty INI keys. Can be used to customize the main window title. Support three replacement variables: $PRODUCT$ - B4A/B4J..., $FILE_NAME$ - project name, $FILE_PATH$ - project path.
  • New internal keywords: Initialized and NotInitialized:
    B4X:
    If Map1 <> Null And Map1.IsInitialized Then ... 'boring
    If Initialized(Map1) Then ... 'less boring
  • B4XCollections: new helper methods: EmptyList, EmptyMap, MergeMaps, MergeLists, CreateList, CopyOnWriteMap and CopyOnWriteList.
  • Updated internal libraries: XUI Views v2.66, B4XCollections v1.15, Core v13.2.
  • Other bug fixes and minor improvements.

Beta download link: https://www.b4x.com/android/files/beta.exe
Note that the installer is signed with a new signing key and might show a security warning.
 

aeric

Expert
Licensed User
Longtime User
CreateList is like CreateMap?
This wish has been long awaited.
There are many new methods too and I am very excited to see them.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Not exactly as it is not an internal keyword. You have Array which creates an immutable list.
B4XCollections.CreateList creates a modifiable list.
B4X:
Dim l As List = B4XCollections.CreateList(Array("aaa", "bb", "ccc"))
l.Add("ddd")
You can also pass Null to create an empty list. Note that these methods are also available in B4J and B4i.
 
Upvote 0

tchart

Well-Known Member
Licensed User
Longtime User
Woo I think I like this macro thing.

Just to clarify, Title means it’s added to the title bar as a macro button?
 
Upvote 0

Robert Valentino

Well-Known Member
Licensed User
Longtime User
Went looking for the ini file and actually is one more level down for each different package
Ini file location:
 Directory of C:\Users\Robert Valentino\AppData\Roaming\Anywhere Software\B4i
 Directory of C:\Users\Robert Valentino\AppData\Roaming\Anywhere Software\B4J
 Directory of C:\Users\Robert Valentino\AppData\Roaming\Anywhere Software\B4R
 Directory of C:\Users\Robert Valentino\AppData\Roaming\Anywhere Software\Basic4android
 
Upvote 0

Theera

Expert
Licensed User
Longtime User
#macro command is supported only B4XPages ,or the both of non-B4XPages and B4XPages?
 
Upvote 0

asales

Expert
Licensed User
Longtime User
Please update this post with the changes to 34 and 35 SDK versions:
 
Upvote 0
Status
Not open for further replies.
Top