Android Question Duplicate Project

Shelby

Well-Known Member
Licensed User
Longtime User
I have an SQLite Project working properly. Every three years, I'll need to make an additional project the same as the working one but with a new database. I have attempted to use the same code in my working project but inserting a new database. When attempting to compile the new project, I get the error:
B4A Version: 12.50
Parsing code. Error
Error parsing program.
Error description: Attribute not supported: event
Error occurred on line: 10 (xTableLite)
#Event: CellClick(col As Int, row As Int)

I can't seem to find my problem looking through past threads here on the forum. Can one of you help? I've had to use wetransfer.com to get the forum software to accept the project. Here is the link.:
 

Shelby

Well-Known Member
Licensed User
Longtime User
Thanks, I'll try your techniques. Any chance I could take the module from my working project and replace the xTableLite module on the new project for success?
P.S. That did work.
 
Last edited:
Upvote 0

teddybear

Well-Known Member
Licensed User
I guess you added the module xTableLite by copying the code, the module type you added is Activity instead of Class, so Attribute not supported:event. you can see the icon of the xTableLite.
 
Upvote 0

Shelby

Well-Known Member
Licensed User
Longtime User
I think I added nothing. Somehow the xTableLite module isn't the correct type (activity rather than class) I take it. I had no changing of the module as far as I can remember. I am about to delete my latest test project (with the new db) and try it again. After I removed the xTableLite module from the test project, I couldn't seem to add an existing module, etc.
 
Upvote 0

Shelby

Well-Known Member
Licensed User
Longtime User
I removed the xTableLite Module and added a good one and it almost worked. I'll keep experimenting since it didn't quite display on my S23 Samsung yet. Thanks again Luca and Teddy. Yes I could see the module file.
 
Upvote 0

Shelby

Well-Known Member
Licensed User
Longtime User
The app starts to display but immediately disappears. I remember this happening before but I've forgotten the remedy. I'll look over the forum history.
 
Upvote 0

Shelby

Well-Known Member
Licensed User
Longtime User
I think the xTableLite file is corrupt.
I renamed it (temporarily), created a new xTableLite class and copied all the source code into it. Removed the original xTableLite and now I don't get that error anymore.
Luca, What gave you a clue that the file was corrupted?
 
Upvote 0

Shelby

Well-Known Member
Licensed User
Longtime User
Thanks. Do all .jar files and .bas files belong in the Additional Libraries folder? If not, where should they be? B4A folder? I'm looking for that answer in the booklets.
 
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…