> "Mike Davis" <[EMAIL PROTECTED]> wrote:
> > // fldP is declared as FieldPtr
> > // attrP is declared as FieldAttrPtr
> > // fldXReg is ID of field
> > // form is obtained with GetActiveForm()
> > 
> > case ctlSelectEvent:
> >     fldP = FrmGetObjectPtr(form, FrmGetObjectIndex(form, fldXReg));
> >     FldGetAttributes(fldP, attrP);
> 
> Did you simply define attrP as FieldAttrPtr and do nothing else with it
> before calling FldGetAttributes? If so, where does attrP point?
> 
> You probably want something like:
> 
> FieldAttrType attr;
> ...
> FldGetAttributes(fldP, &attr);

I guess I misunderstood the FldGetAttributes function; the docs are
not too clear.  I thought the attrP (was an output parameter) would 
be used as the 2nd parameter and that attrP would be set with the 
value of the location of the attributes.  I didn't realize that a 
FieldAttrType of attr was filled with the attributes.

Thanks
> Have you tried stepping through your code with POSE and GDB? If you do,
> you will know exactly where your code is crashing.
> 
> --
> Roger Chaplin
> <[EMAIL PROTECTED]>
> 


--
-----------------------------------------------------------------
Discussion Group:        http://www.halcyon.com/ipscone/wwwboard/

Protect your constitutional rights. Your favorite one may be next!
-----------------------------------------------------------------

Reply via email to