I am trying to modify a database record.  The element of the record is derived 
from the corresponding structure, in which it is designated as "UInt16" data 
type.  Now I try to use DmSet to write, and have a problem with "UInt8" data 
type being required for DmSet.

My code line reads as:

err = DmSet (p, OffsetOf(TransStructType, BasekVA),sizeof(Record->BasekVA), 
Record->BasekVA); 


This does not cause a crash or a compiler complaint.  It simply does not put 
the number on the screen that I want.  I've been using StrAtoI and StrItoA to 
read and write to fields, and these return 32 bit integers.  This hasn't 
presented any problem, until I try to write an 8 bit integer to a sixteen bit 
"chunk".  The value that comes back when I write the value to the screen is not 
the one that I enter.  The conversion process is clearly getting in the way.

Is there another API call to write to an integer in a record that permits one 
to write to a 16 bit integer?

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

Reply via email to