Knowledge Base

FIX: TTOC Returns More Than 14 Characters

Article ID: 135701

Article Last Modified on 3/24/2000


APPLIES TO


This article was previously published under Q135701

SYMPTOMS

TTOC({},1) returns more than 14 characters.

WORKAROUND

Use the following expression to provide a proper 14-character string:

IIF(<aDate> =={}, replicate("0",14), TTOC(<aDate>, 1))

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was corrected in Visual FoxPro 3.0b for Windows.

MORE INFORMATION

Steps to Reproduce Problem

?TTOC({},1)  &&"000000000478376201"
?TTOC(CTOD('  /  /  '),1)   &&"000000000478376201"

Additional query words: 3.00 VFoxWin fixlist3.00b buglist3.00

Keywords: kbbug kbfix KB135701