Yikes! :-)

It's really a question for AppForge then, unless you want to go digging with
a tool like RsrcEdit and peek into the database records, and base your
conduit workings on that. Not highly recommended as AppForge might change
the way they work down the track and you'd be hosed. However it would get
you going initially.

Are there no AppForge developer forums?


Now, where's Codewarrior... ah yes... mmmm... comfy... C... :-)

Sorry I can't be more use,
Gavin.

-----Original Message-----
From: K.S. Jaishankar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 15 January 2002 6:50 PM
To: Palm Developer Forum
Subject: RE: Reading Date & Number fields from Byte Array


I am sorry Gavin, it was my mistake for not giving details of my Application
development method. I am pure VB developer, so I do not understand most of
the C/C++ world.

I have used AppForge 2.0 Personal Edition Visual Basic Add-in for Palm
application Development. This add-in provides me to declare the database
structure, Database creation and other functionality to read and write
(within Palm). It does provide the Universal Conduit for Professional
Edition users, I do not have that so I need to develop a conduit on my own.
It is also a learning for me to build some corporate apps (if all goes
well!!!).

The structure declaration and the database creation is as follows;

'PDB - OB.pdb
Public Type OBRecord
    OBDate As Date
    Amount As Currency
    Remarks As String
End Type

'Create OB.pdb

    #If APPFORGE Then
      'Create new database (if on the device)
      lngDB = PDBCreateDatabase(strDBName, lngType, lngCreator)
    #Else
      'Create new database (if on the PC)
      lngDB = PDBCreateDatabase(App.Path & "\" & strDBName, lngType,
lngCreator)
    #End If
    PDBCreateTable lngDB, "OB", _
                "OBDate Date, " & _
                "Amount Currency, " & _
                "Remarks String"

AppForge add-in creates the PRC files for deployment. I do not know what
data types it uses while creating PRC files and databases. With the above
code, the data types I am using may be clear. I am not sure about the
equivalent Palm datatype. If I am not wrong it is unsigned Short for Date
and Unsigned Long for currency.

There is no support available from AppForge or its news groups, as I have
only license to personal edition, I am not entitled to ask support from
them.

Please help me to overcome this issue.

Thanks
With Regards
K.S.Jaishankar



>From: Gavin Maxwell <[EMAIL PROTECTED]>
>Reply-To: "Palm Developer Forum" <[EMAIL PROTECTED]>
>To: "Palm Developer Forum" <[EMAIL PROTECTED]>
>Subject: RE: Reading Date & Number fields from Byte Array
>Date: Tue, 15 Jan 2002 14:27:40 +0800
>
>The code I presented did the requisite bit shifts (by doing a division).
>Maybe explicit bitshift routines are available in VB, but the divisions
>should work either way.
>
>I still don't quite see *exactly* what you are storing in the Palm 
>databases
>to represent your dates. If it's not a DateType then the bitshifts don't
>matter and you'll likely need to do something else. That "something else"
>depends on exactly what it is you are storing. Where do you get the data
>from in the first place on the Palm? What OS routine are you calling. Show
>me some code and I can stop poking around in the dark.
>
>Gavin.
>


_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


-- 
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to