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

4- Fields operations



Introduction

In the current version, 4 types of fields are supported :



  • CPDB_TYPESHORTINT : Short Integer, 1 octet, from -128 to 127
  • CPDB_TYPEINT : Integer, 2 octets, from -32768 to 32767
  • CPDB_TYPELONGINT : long integer, 4 octets, from -2147483648 to 2147483647
  • CPDB_TYPESTRING : a string, ascii zero terminated

Read a string field

Use the following example :





Err err;
MemHandle handle;
Char *string;

err = CPDB_ReadString(mydbHandle, "FIELDNAME", &handle);
if (err == 0)
{
string = MemHandleLock(handle);
// Use the string now
// ...
// Free the string
MemHandleUnlock(handle);
MemHandleFree(handle);
}

Important : the CPDB_ReadString function allocate the memory for you, so you must free this memory after use.


Read a numeric field

Use the following example :


Short integer :


Int8 int8;
err = CPDB_ReadShortInt(hOREST, "FIELDNAME", &int8);

Integer :

Int16 int16;
err = CPDB_ReadInt(hOREST, "FIELDNAME", &int16);

Long integer :

Int32 int32;
err = CPDB_ReadLongInt(hOREST, "FIELDNAME", &int32);


More information

CPDB_ReadShortInt


CPDB_ReadInt


CPDB_ReadLongInt


CPDB_ReadString


Creation date : 01/10/2003 @ 06:33
Last update : 01/10/2003 @ 07:27
Category : CPDB library
Page read 8229 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.1 second