B4J Question B4J version 10.30 error Unknown type: initialized

PaulMeuris

Well-Known Member
Licensed User
A few minutes ago i installed B4J version 10.30 for the second time (i thought it might help).
I reopened one of my tutorial projects (pmtablebrowser version 2 (pmtablebrowser_v2.zip) and got this error message
'as' expected.
'(' expected.
'(' expected.
Unknown type: initialized
Are you missing a library reference?
There is no reference in the IDE to where that error occurs.
The search for 'initialized' revealed 4 lines:
1764933132174.png

I changed the
B4X:
If lbl.IsInitialized then
to:
B4X:
If initialized(lbl) then
But that didn't change anything because the parsing program was throwing the error.
B4J Version: 10.30
Parsing code. Error
Error parsing program.
Error description: Unknown type: initialized
Are you missing a library reference?
Error occurred on line: 20 (TransferMode)
Private Initialized As Boolean
This seems to be a one of a kind error because my other tutorials (starting with 'pmtable') work just fine with B4J 10.30
The core library was not updated after the new installation:
1764934058212.png

1764934229010.png

Do i need an update for the core library?
 
Solution
A few minutes ago i installed B4J version 10.30 for the second time (i thought it might help).
I reopened one of my tutorial projects (pmtablebrowser version 2 (pmtablebrowser_v2.zip) and got this error message

There is no reference in the IDE to where that error occurs.
The search for 'initialized' revealed 4 lines:
View attachment 168720
I changed the
B4X:
If lbl.IsInitialized then
to:
B4X:
If initialized(lbl) then
But that didn't change anything because the parsing program was throwing the error.

This seems to be a one of a kind error because my other tutorials (starting with 'pmtable') work just fine with B4J 10.30
The core library was not updated after the new installation:
View attachment 168721
View attachment 168722
Do i need an...

DonManfred

Expert
Licensed User
Longtime User
Initialized keyword was added in B4J 10.2
 
Upvote 0

zed

Well-Known Member
Licensed User
I encountered this problem recently. I copy and paste, and bam! Error: Unknown type: initialized.

Actually, I had simply deleted this from MainPages:
...:
Public Sub Initialize
'    B4XPages.GetManager.LogEvents = True
End Sub
 
Upvote 0

teddybear

Well-Known Member
Licensed User
A few minutes ago i installed B4J version 10.30 for the second time (i thought it might help).
I reopened one of my tutorial projects (pmtablebrowser version 2 (pmtablebrowser_v2.zip) and got this error message

There is no reference in the IDE to where that error occurs.
The search for 'initialized' revealed 4 lines:
View attachment 168720
I changed the
B4X:
If lbl.IsInitialized then
to:
B4X:
If initialized(lbl) then
But that didn't change anything because the parsing program was throwing the error.

This seems to be a one of a kind error because my other tutorials (starting with 'pmtable') work just fine with B4J 10.30
The core library was not updated after the new installation:
View attachment 168721
View attachment 168722
Do i need an update for the core library?
You need to upgrade DragAndDrop2-b4xlib to v1.20.
I remeber stevel05 modified the library for v10.20, see here
Update v1.2 - Changed global variable Initialized to IInitialized to avoid issues with B4x V10.2 Beta. There is now only a B4xlib version.


86fde695-6504-40f5-99db-5189ae9170ff.png
 
Upvote 0
Solution

PaulMeuris

Well-Known Member
Licensed User
Thank you @teddybear for your quick reply and solution.
If i had given a screenshot of the libraries then maybe one of the other members that helped could have found the solution too...
Thanks @zed and @DonManfred for your assistance.
And of course thank you @stevel05 for the great library.

EDIT: I could have found the solution sooner if i had read the complete thread @DonManfred gave about support for Python. In that thread @DarkoT mentioned that same error message. The messages after that also gave the solution: update the draganddrop2 library!
 
Last edited:
Upvote 0
Top