Guys

Can someone have a look at this code snippet & tell me what silly mistake I am 
making.

The code displays nothing in the field ConfigurePhoneTimephoneonField on the 
form, it generates no errors & the rest of the fields on the form work fine, 
but they are not time fields (Dont think this makes any difference). It is Not 
a Numeric field.

Any ideas ?

ctlP = ( ControlType * ) FrmGetObjectPtr ( frmP, FrmGetObjectIndex( frmP, 
ConfigurePhoneTimephoneonField ) );
labelP = (Char *) CtlGetLabel( ctlP );

timeP->hours = 8;
timeP->minutes = 45;

TimeToAscii( timeP->hours, timeP->minutes, tfColonAMPM , labelP );

/*      TimeToAscii
                ( 
                timeP->hours, 
                timeP->minutes, 
                TimeFormatType ( PrefGetPreference ( prefTimeFormat ) ) , 
                labelP 
                );
*/
CtlSetLabel ( ctlP, labelP );

FrmShowObject ( frmP , FrmGetObjectIndex( frmP, ConfigurePhoneTimephoneonField 
) );

TIA

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

Reply via email to