Re: please help
- From: "Keld Laursen" <kl@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 3 May 2005 21:26:31 +0200
"Diego Cernuda" <diego@xxxxxx> skrev i en meddelelse
news:ea72MQ8TFHA.2420@xxxxxxxxxxxxxxxxxxxxxxx
> I'm from Spain and I'm started in the embedded visual basic. I need do an
> aplication for a PDA(whit a data base) and i don't known do "select * from
> table" to the data base.
If you need to do an application today, then you should be aware that new
PDA's are just around the corner, which will NOT support eVB programs.
You would therefore be well adviced to look into programming using either
eVC or a CE.NET based language like VB.NET or C#.net
> I find this code in a web, but i don´t understand.
> Set conndb = CreateObject("ADOCE.Connection.3.1")
This is a simple "Create an object of the type ADOCE.Connection". This
object is what will handle your connection to an underlying database using
ADOCE.
If you are going to look into other languages, then eVC doesn't readily
support ADOCE, and the .NET languages use ADOCE.NET, which is another beast.
> conndb.ConnectionString = "data source = \My Documents\mensaje.mdb"
This seems to come form the PC world. An .mdb file is an Access database.
The file on the device will have a name like "\My Documents\mensaje.cdb"
> conndb.Open
This should be fairly obvious: Open the connection to the database.
> Call LoadCtrl(Form1.GridCtrl1, "select mensajes from mensaje") --> what's
> this?
LoadCtrl must be an user-defined function elsewhere in the program you have
found.
My guess is that it will fill the grid named GridCtrl1 with data from a
table called mensaje in the database mensaje.cdb. From this table it selects
the field mensajes from all available records.
> conndb.Close
Close the database connection when you are done with it.
> Set conndb = Nothing
This is in fact not a very good idea. eVB has a memory leak in the
CreateObject function, so you will be better off re-using your connection
instead of freeing the object and then re-creating it the next time around.
> . please help me
I tried. But please take note of my warning against spending too much time
learning eVB.
/Keld Laursen
.
- References:
- please help
- From: Diego Cernuda
- please help
- Prev by Date: please help
- Next by Date: Debugging problem in EVB. I seen to have a weird problem.
- Previous by thread: please help
- Next by thread: Debugging problem in EVB. I seen to have a weird problem.
- Index(es):
Relevant Pages
|