H h4an Member Licensed User Longtime User Sep 18, 2026 #1 I get this error in the compile window when I run any of my projects: B4A Version: 13.10 Parsing code. Error Error parsing program. Error description: Syntax error. Fel uppstod vid linje; 104 (B4XCollections) Public Sub CreateList (Items As List = Null) As List And in the Log window: Objektreferensen har inte angetts till en instans av ett objekt. Undeclared variable 'items' is used before it was assigned any value. Undeclared variable 'items' is used before it was assigned any value. Undeclared variable 'initialized' is used before it was assigned any value. Undeclared variable 'initialized' is used before it was assigned any value. Undeclared variable 'initialized' is used before it was assigned any value. Undeclared variable 'initialized' is used before it was assigned any value. Undeclared variable 'initialized' is used before it was assigned any value. Syntax error. Yesterday it worked, I had B4J installed for a while today but have uninstalled it again. I have also tested a backup of one of the projects, with the same results.
I get this error in the compile window when I run any of my projects: B4A Version: 13.10 Parsing code. Error Error parsing program. Error description: Syntax error. Fel uppstod vid linje; 104 (B4XCollections) Public Sub CreateList (Items As List = Null) As List And in the Log window: Objektreferensen har inte angetts till en instans av ett objekt. Undeclared variable 'items' is used before it was assigned any value. Undeclared variable 'items' is used before it was assigned any value. Undeclared variable 'initialized' is used before it was assigned any value. Undeclared variable 'initialized' is used before it was assigned any value. Undeclared variable 'initialized' is used before it was assigned any value. Undeclared variable 'initialized' is used before it was assigned any value. Undeclared variable 'initialized' is used before it was assigned any value. Syntax error. Yesterday it worked, I had B4J installed for a while today but have uninstalled it again. I have also tested a backup of one of the projects, with the same results.
Solution H H h4an Sep 19, 2026 Thanks LucaMs, it worked. I now know what happened, the error came after I updated B4XCollections to V1.15
Thanks LucaMs, it worked. I now know what happened, the error came after I updated B4XCollections to V1.15
Sagenut Expert Licensed User Longtime User Sep 18, 2026 #2 Please post some related code or a small project with the same issue. Otherwise it's nearly impossible to understand what is going on. The error message tell that you are trying to use a variable that it's not yet declared in the moment of the call. Upvote 0
Please post some related code or a small project with the same issue. Otherwise it's nearly impossible to understand what is going on. The error message tell that you are trying to use a variable that it's not yet declared in the moment of the call.
Sagenut Expert Licensed User Longtime User Sep 18, 2026 #3 Did you try with B4X: Public Sub CreateList (Items As List) As List Upvote 0
LucaMs Expert Licensed User Longtime User Sep 18, 2026 #4 h4an said: B4A Version: 13.10 Click to expand... h4an said: Public Sub CreateList (Items As List = Null) As List Click to expand... That "Items As List = Null" is an optional parameter and was introduced in the latest version of B4A, 14.0. Install it and the problem will be resolved (or don't use them). Upvote 0
h4an said: B4A Version: 13.10 Click to expand... h4an said: Public Sub CreateList (Items As List = Null) As List Click to expand... That "Items As List = Null" is an optional parameter and was introduced in the latest version of B4A, 14.0. Install it and the problem will be resolved (or don't use them).
H h4an Member Licensed User Longtime User Sep 19, 2026 #5 Thanks LucaMs, it worked. I now know what happened, the error came after I updated B4XCollections to V1.15 Upvote 0 Solution
Thanks LucaMs, it worked. I now know what happened, the error came after I updated B4XCollections to V1.15