Nick:
Thank you for your suggestion.
I substituted FldSetTextPtr and FldRecalculateField to FldDrawField.
Unfortunately, it still won't get anything in the filed. Do you have other
suggestions about this matter?
allen
> -----Original Message-----
> From: Nick Hammond [SMTP:[EMAIL PROTECTED]]
> Sent: Saturday, July 31, 1999 9:32 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Date and time
>
> 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>