hello again,

if u already know my msgs, u probably know the story. for those of u who
don't know what i'm talking about, hereis the story:

i have a form with different kind of feilds ( like text field, popup trigger
field ex. - all from the catalog of CW constractor). i need to fill the
fields in my form and after that i want to save the form data, the field
values, in my DB.
there is also table in this application to show a list of the records.

i have the "Palm Programming" (of SAMS). i use a lot of its 14 chaper
function.

i have a funtion like this:
void FormSetTextFeildValue ( CharPtr TextFieldP )
{
     // lock down the block containing the record
     if ( RecH )
     {
          Ptr p;

              p = (Ptr) MemHandleLock (RecH);

              // wrire the value. add 1 to strlen to make sure it's null
termed
              Err err = DmWrite ( p, 0, TextFieldP, StrLen (TextFieldP) +
1 );

              MemPtrUnlock (p);
     }

     return;
}

i send to the function a value of: (example)

hField = FldGetTextHandle ( pointer_to_the_field_object );
CharPtr TextFieldP = (CharPtr) MemHandleLock (hField);

and the RecH var is define as static handle ( global ). RecH get a value in
another function, annd his value is an handle to a record by DmGetRecord ( )
function.

my Q is:
this function can save text data to my text fields in the database by the
DmWrite ( ) function. how do i save data of the field like push-button or
something that i choose from a popup trigger-list, to my record and to my
database? is there a acvivalant function to DmWrite for non-text fields?
can someone suggest some code?

thank in advance :-)


--
ELIAH NINYO

[EMAIL PROTECTED]

  ("`-''-/").___..--''"`-._
  `6_ 6  )   `-.  (     ).`-.__.`)
   (_Y_.)'  ._   )  `._ `. ``-..-'
 _..`--'_..-_/  /--'_.' ,'
(il).-''  (li).'  ((!.-'





-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to