Try using a field and make it read only. Its a little easier/safer. But if
you stick with a label, don't use CtlSetLabel, use FrmCopyLabel.
- Original Message -
From: "rguevara" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Friday, August 22, 2003 10:51 AM
Subject: Show Label
> Hi, i have one Label and want change thus label, with:
>
> FormType * form=FrmGetActiveForm();
> UInt16 index=FrmGetObjectIndex(form,OrdenDescLabel);
> ControlType *ctl=GetObjectPtr(OrdenDescLabel);
> MemHandle
recH=DmQueryRecord(PedidosDB,filtvec[posinvec+1].start+gposinord );
>
> FrmHideObject(form, index);
> if (recH)
>{
> ItemOrdReg * rec = (ItemOrdReg *) MemHandleLock(recH);
> if (recH)
> {
>CtlSetLabel( ctl, rec->codigo);
>FrmShowObject(form, index);
> }
> MemHandleUnlock(recH);
>}
>
> And..., don't shown nothing!
>
> --
> Open WebMail Project (http://openwebmail.org)
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/