Page loading

  
    
     
trans

 

CPDB.Net

 

[fr]
trans
[en]

 

Welcome
Welcome

 

News
News

 

Downloads
Downloads

 

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

Preferences

Your name : Guest


Users online

( nobody )

trans

Webmaster

Webmaster : Palmipod

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

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

trans

trans

3- Browse operations



Introduction

With CPDB you can browse your databases in any direction, with very simple functions.


Browse in simple way

To browse your database simply use this example :





// Read the first record
err = CPDB_ReadFirst(mydbHandle);
while (err == 0)
{
// Work on the record here
// ...
// Go to the next record
err = CPDB_ReadNext(mydbHandle);
}

The loop will end when CPDB_ReadNext return an error, you must verify this error, it must be a CPDB_ERR_EOF error. You can browse in the inverse direction by using CPDB_ReadLast and CPDB_ReadPrevious functions, the error will be CPDB_ERR_BOF.


Browse page by page

To browse page by page, use the CPDB_SeekForward and CPDB_SeekBackward functions. This example seek 10 records in one operation :


err = CPDB_SeekForward(mydbHandle, 10);


Note ; if the end (or begin) of the file is reached, the read operation is canceled, you must do a CPDB_ReadFirst (or Last) to complete the operation.


Browse information

A any time it is possible to know if the last browse operation have succeded, use the CPDB_IsOut function :


Boolean boolIsOut; err = CPDB_IsOut(iHandle, &boolIsOut);


If boolIsOut contain true, the last browse operation have failed, and no record is currently readed.


More information

CPDB_ReadFirst


CPDB_ReadNext


CPDB_ReadLast


CPDB_ReadPrevious


CPDB_SeekForward


CPDB_SeekBackward


CPDB_IsOut


Creation date : 01/10/2003 @ 06:20
Last update : 01/10/2003 @ 07:24
Category : CPDB library
Page read 5388 times

Print previewPrint preview

  

Print the pagePrint the page

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

Visits (since August 2006)

  visitors

  visitor online

trans

trans

Top

trans

GuppY - http://www.freeguppy.org/
Site running with GuppY v3.0p5mod - GNU Public License - 2002-2004

trans

Page loaded in 0.4 second