Android Tutorial New Easy to Use DataBase Functions V1.0 with Samples

margret

Well-Known Member
Licensed User
Longtime User
* * * UPDATE * * *

After the release of B4A 2.0!! I started looking into converting this DataBase code module to a Class. What I found was the power to really add to and make a much better DataBase Class with many new features. It will be much easier to use than this one! Just wanted to post so those that have B4A 2.0+ will know to look for the new DataBase Class soon. It still may be a few weeks out but I have a large portion already done. I can't say that it can or will be done, but you are welcome to throw ideas my way.

Thanks
 
Last edited:

myriaddev

Active Member
Licensed User
Longtime User
I would like to test early

Hi Margret. I have your older code in use and would be glad to pay you back
by offering to test the newest code early for you!
Jerry
 

Gearcam

Active Member
Licensed User
Longtime User
Hi this looks very good i will wait for the new version

will it be able to hold the actual bitmap into database ?

Will it work with MS sql through HttpUtils2 - Web services ?

Steve
 

Gary Miyakawa

Active Member
Licensed User
Longtime User
Margret,

I'm starting a project that needs a DB handler.. how close is your class version?

Thanks,

Gary M
 

young61

Member
Licensed User
Longtime User
Beta Database Class

Margret, I would like to try using your database class. Would you please send it to me? Thanks in advance,

Chet

Hello Gary M,

It is far enough along that I can get it to you to start using as a Beta.
 

metrick

Active Member
Licensed User
Longtime User
Margret, I am working on project that use database.
Could you please send your database class to me?
I would like to beta test it.
Thanks
 

gleepy

New Member
Licensed User
Longtime User
Hello Gary M,

It is far enough along that I can get it to you to start using as a Beta.

Hi Margret,
I would appreciate it if you could send me a beta version please.

I'm hoping it will save me quite a bit of time and for that... Thank you for all your selfless efforts on this.:sign0142:

John
 

spezialmaterie

Member
Licensed User
Longtime User
Hello,

i have a question. i want to use a database (read only) on my app.

i want to put the data sets with my computer to the database and then i want to copy the database to my tablet and use it there read only.

can i fill the database with a program on my computer?
 

microbox

Active Member
Licensed User
Longtime User
error in adding record...

Hi, thanks for this library...I'm trying to add record, table with 2 fields but I'm getting error.
B4X:
Sub Create_Click
If EditText1.Text <> "" AND EditText2.Text <> "" Then
db.Field(0,0) = EditText1.Text.Trim     
db.Field(1,0) =   EditText2.Text.Trim
db.AddRecord()
Else
ToastMessageShow("Empty field",False)
End If
End Sub
This is the error showing in the image below...hope you can help.
 

Attachments

  • Database_error.png
    14.8 KB · Views: 387

margret

Well-Known Member
Licensed User
Longtime User
You can create the database in notepad. Use the program to create one or two records and copy it to the root of the SDCard. You can then copy the file to your computer or email it. Open it with notepad and you will see the layout to follow.


 

aklisiewicz

Active Member
Licensed User
Longtime User
seems like it is what I was looking for, but I'm looking for some (more realistic example - the one attached is not very helpful for beginners)
- creating database
- creating tables
- basic CRUD operations
- search and using Views, stored procedures etc.
anything like that available ?
 

GMan

Well-Known Member
Licensed User
Longtime User
i am using 2 fields in the db with decimal content, once is a money sum and the other a weight sum (both with 2 places behind the comma(dot)).

How can i add the depending sums to an total, to display them in a label after the the screen starts ?
Then the total amount of weight and the total amount of money should be displayed in a label...
 

nypaulie

Active Member
Licensed User
Longtime User
Can the *.dat files created using this program be edited? I've tried using text-editing but the altered files give an error msg when used in the program.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…