The code is an exact copy of MemoPad tutorials.  It is supposed to
initialize the details form which displays a private record checkbox and a
popup trigger for the categories.   I have removed the checkbox and removed
the code which i thought was for the private box (by commenting them with
//). I have also changed the categories to wards.  I am getting 6 errors:
undefined identifier for 'dmCategoriesLength' and 2 for 'ctl'.  And
expression syntax error for the 1st and 3rd line 'static void
DetailsInit(void)' and 'ControlPtr ctl;'. Then another error says:   ';'
expected    and points at '{' .
I hope this is enough detail to be able to help me....
Thanks
Madina

----- Original Message -----
From: George R <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum
To: Palm Developer Forum <[EMAIL PROTECTED]>
Sent: Monday, July 23, 2001 3:59 PM
Subject: Re: Initializing CategoriesRecord


> What's the problem? Are you getting errors? If so, what are they? What are
> you trying to do?
>
> george r.
>
> "Madina" <[EMAIL PROTECTED]> wrote in message
> news:57389@palm-dev-forum...
> >
> > Hi,
> > This is the code from MemoPad but changed a bit.  I have been using the
> code
> > for my small application.  I did not want the "private" checkbox for
> marking
> > secret records and did only the pop up trigger listing wards in the
> Details
> > form.  I am really bad in coding and if someone could point out the
> problem
> > here, i would really appreciate it.
> >
> > static void DetailsInit(void)
> > {
> > ControlPtr ctl;
> >  //UInt   attr;
> >  //Boolean   secret;
> >
> >
> >  // P11. NewCategory indicates which category wants to changed the
> >  // current record to.  Initialize it to the current record's current
> >  // category.
> >  NewWard = RecordWard;
> >  NewWardEdited = false;
> >
> >  // Get the secret and category attributes of the current record.
> >  //DmRecordInfo(EntryDB, CurrentRecord, &attr, NULL, NULL);
> >  //secret = attr & dmRecAttrSecret;
> >
> >  // If the record is marked secret, turn on the secret checkbox.
> >  //CtlSetValue(GetObjectPtr(MemoPadDetailsPrivateCheckbox), secret);
> >
> >  // P11. Set the label of the category trigger.
> >  CategoryGetName (EntryDB, RecordWard, WardName);
> >  ctl = GetObjectPtr (PatientManagerDetailsWardPopTrigger);
> >  CategorySetTriggerLabel (ctl, WardName);
> > }
> >
> > Thanking you all for the help
> > Madina
> >
> >
> >
> >
> >
> >
>
>
>
> --
> 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