Android Question Where is the ADD COMPONENT and ADD OBJECT menu Items

Peter Donovan

Member
Licensed User
Longtime User
i am following along with the tutorial on adding SQLlite to my project but there is no ADD COMPONENT and ADD OBJECT menu item in my IDE.

I have searched the Beginners Guide and there is no solution there. Any help would be appreciated.

Peter
 

LucaMs

Expert
Licensed User
Longtime User
You can add a SQLite db, created with an external tool, in the Files tab of IDE (then you should copy it from File.DirAssets to some other folder, because files in that folder are read-only. You can use DBUtils for do it).

Or you can create one, using:
B4X:
DB.Initialize(DBDir, DBName, True)

where DB is a global variable of type SQL (you should add SQL library to you project) and use DBUtils module to add tables, indexes, etc.
 
Upvote 0

Peter Donovan

Member
Licensed User
Longtime User
Thanks LucaMs,
so I can take it that the COMPONENT and OBJECT menu is no longer on the Tools menu? (Version 3.50 Beta 1)
 
Upvote 0

mangojack

Expert
Licensed User
Longtime User
I have reread various SQL tutorials etc and cant find references to Add Component & Objects ... so cant comment on that.

Peter .. if you have not read these yet , they will be very useful ... SQLiight .. two simple sqlite projects.

It is Not a necessity to use DBUtilis to work with SQLite . You can create DB's / Tables etc directly with sql. It is your choice to use DBUtils if you think it makes interacting with sql easier.
 
Last edited:
Upvote 0

klaus

Expert
Licensed User
Longtime User
With ADD COMPONENT and ADD OBJECT, I suppose you are refering to Basic4PPC.
In Basic4Android it's simpler:
- In the Lib Tab check the SQL library look at chapter 14.7 Libraries in the Beginner's Guide
- In Process_Globals declare Public SQL1 As SQL or Dim SQL1 As SQL , page 21 in the User's Guide
And that's it.
 
Upvote 0

Peter Donovan

Member
Licensed User
Longtime User
I have reread various SQL tutorials etc and cant find references to Add Component & Objects ... so cant comment on that.

Peter .. if you have not read these yet , they will be very useful ... SQLiight .. two simple sqlite projects.

It is Not a necessity to use DBUtilis to work with SQLite . You can create DB's / Tables etc directly with sql. It is your choice to use DBUtils if you think it makes interacting with sql easier.


Hi mj,
thanks for this info. It is very helpful and I appreciate your assistance.

Best regards,
Peter
 
Upvote 0

Peter Donovan

Member
Licensed User
Longtime User
With ADD COMPONENT and ADD OBJECT, I suppose you are refering to Basic4PPC.
In Basic4Android it's simpler:
- In the Lib Tab check the SQL library look at chapter 14.7 Libraries in the Beginner's Guide
- In Process_Globals declare Public SQL1 As SQL or Dim SQL1 As SQL , page 21 in the User's Guide
And that's it.

Hi Klaus,
Makes sense now. I am indeed working with Basic4Android. Thanks for the tip.

Best regards,
Peter
 
Upvote 0
Top