Page loading

  
    
     
trans

 

CPDB.Net

 

[fr]
trans
[en]

 

Welcome
Welcome

 

News
News

 

Downloads
Downloads

 

Forum
Forum

 

Stats
Stats

 

 

Admin
Admin

trans

Return to :

PPCompiler

trans

Index

CPDB library
1- Add CPDB support to your application
2- Open and close databases
3- Browse operations
4- Fields operations
5- Functions of modification of a database
6- Sort and search operations
7- Index of functions
8- Error codes
Documentation
CPDB Conduit
CPDB Features

trans

Webmaster

Webmaster : Palmipod

E-mail : phc­@­palmipod­.­com

This site requires web browsers to be at least version 4.

trans

Visits (since August 2006)

  visitors

  visitor online

trans

trans

2- Open and close databases




Introduction

Before browse and read a CPDB database, you must open it. And by the way, after browse and read a CPDB database, you must close it...

Waring : you can open 100 databases at a time, for all CPDB applications, so if you open 10 databases, 90 databases handles are available for other applications.

You can open the same database more than one time. With this feature it's possible to browse the same database on different ways at the same time.

Note : all CPDB function return an error code. This code is 0 if no error occured. You can find error codes values in the CPDB errors index.


Open a CPDB database


Use the following example :

Err err;

UInt8 mydbHandle;
err = CPDB_Open(0, "mydb", dmModeReadWrite, &mydbHandle);


Parameters :



  1. The card number where the database reside on, use 0.
  2. The name of the database, depend of the name you give to the database.
  3. The opening mode : use dmModeReadWrite if you want to use Sort feature, if not, use dmModeReadOnly.
  4. The CPDB_Open write the handle of the database in a UInt8 value. Use this handle in all the fonction using the opened database.

Close a CPDB database


Use the following example :
err = CPDB_Close(mydbHandle);

The parameter is the handle obtained by the CPDB_Open operation.


More information

CPDB_Open

CPDB_Close

CPDB_DatabaseExist


Creation date : 01/10/2003 @ 06:13
Last update : 01/10/2003 @ 07:19
Category : CPDB library
Page read 9016 times

Print previewPrint preview

  

Print the pagePrint the page

Mobile

Mobile version of CPDB.net

trans

Library

CPDB.net Library

This PalmOS library is compiled in C. It is provided with its .h file and documentation.


The library can be used by all applications developed with CodeWarrior, Falch.net or PRC-Tools.


Included :
Generic conduit for CPDB.net and CPDBWizard


The generic conduit CPDBConduit allows to convert a PC database in a CSV-like format into a Palm database (CPDB format).


CPDBWizard enables you to describe your data bases and generates for you the source code necessary to their exploitation.

trans

Search

trans

trans

trans

Top

trans

GuppY - http://www.freeguppy.org/
Site running with GuppY v3.1 - GNU Public License - © 2002-2024

trans

Page loaded in 0.05 second