Below is a snippet for accessing Palm Pilot Address Books written in VB.NET 2003. From my Understanding, you should be able to do this using PHP's COM functions, but I have been unable to figure it out. I know how to do this in VB, but would rather use PHP as I have to manipulate a lot of Data before I enter it into a MySQL DB. (Plus I like PHP a whole lot more than Vš
The PalmOS Conduit COM API is available at
http://www.palmos.com/dev/dl/dl_sdks/dl_cdk/http://www.palmos.com/dev/dl/dl_sdks/dl_cdk/
If anyone has anyideas on how to use the COM fxns, and want to help me convert this VB snippet, I would be willing to part with my First Born child....
' Declare the PDDatabaseQuery object
Dim pdQuery As New PDDirectLib.PDDatabaseQuery
Dim pAddr As PDStandardLib.PDAddressDbHHRecordAdapter
pAddr = pdQuery.OpenRecordDatabase("AddressDB", "PDStandard.PDAddressDbHHRecordAdapter", PDDirectLib.EAccessModes.eRead Or PDDirectLib.EAccessModes.eWrite Or PDDirectLib.EAccessModes.eShowSecret)
' Declare the record header and data
Dim nIndex As Long
Dim vUniqueID As Object
Dim nCategory As Long
Dim eAttributes As PDStandardLib.ERecordAttributes
Dim vData As Object
' Declare and set the record counter
Dim xRecords As Long
xRecords = 0
pAddr.IterationIndex = 0
Dim pAddressRecord As PDStandardLib.PDAddressDbHHRecord
pAddressRecord = pAddr.ReadNext()
Do While Not pAddr.EOF
xRecords = xRecords + 1
pAddressRecord = pAddr.ReadNext()
Loop