Very simple.  Here's the routine I use:

/***********************************************************************
 *
 * FUNCTION:    SetFieldRightAlign
 *
 * DESCRIPTION: This function sets the given field to right alignment
 *
 * PARAMETERS:  int field = field ID
 *
 * RETURNED:    nothing
 *
 * REVISION HISTORY:
 *
 *
 ***********************************************************************/
static void SetFieldRightAlign(int field)
{

 FormPtr frmP = FrmGetActiveForm();
 FieldPtr fldP;
 FieldAttrType fldT;


// Get a field pointer to the field
 if ((fldP = (FieldPtr)FrmGetObjectPtr(frmP, FrmGetObjectIndex(frmP,
field))) == NULL)
  return;

// Get the field attributes and change the justification to right aligned
 FldGetAttributes(fldP, &fldT);
 fldT.justification = rightAlign;

// Save the field attributes
 FldSetAttributes(fldP, &fldT);

}



Good luck.

Bruce Hartwig


<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
>
> How can I change a field attributes??
>
> I want to change an editable field's attributes,for example I want right
> justified fields.
>
>





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

Reply via email to