The FldSetTextPtr documentation says "This function does not visually update
the field. Use
FldDrawField to do so". FldRecalculateField is only required if the field
is more than one line and has to be wrapped -- suggest you try substituting
a call to FldDrawField.
Regards,
Nick
-----Original Message-----
From: Allen Yang [mailto:[EMAIL PROTECTED]]
Sent: Friday, 30 July 1999 11:35
To: [EMAIL PROTECTED]
Subject: Date and time
Hi, all
I tried to print out the PC date in the form, but I only got some unknown
symbols in the form instead of date. Anyone can tell me what's wrong with my
code ?
<snip>
// print the time to the PC time/date field
fieldptr_datetime_date = FrmGetObjectPtr(form, FrmGetObjectIndex(form,
fieldID_datetime_date));
FldSetTextPtr(fieldptr_datetime_date, pString);
FldRecalculateField(fieldptr_datetime_date, true);
break;
<snip>