FIX: ASCAN() Fails to Find Integer Value when Called in a LoopID: Q162673 The information in this article applies to:
SYMPTOMSThe ASCAN() function may sometimes fail to find an integer value that is present in the searched array when values within the searched array are changed in an iterative loop.
RESOLUTIONAs a workaround, you can convert a value in the scanned array to a character string, then back to a numeric data type, before issuing the ASCAN() function.
This must be done in two separate program lines, not all in a single line
as in the following:
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This problem has been fixed in Visual FoxPro 5.0a.
MORE INFORMATIONThe ASCAN() function should return an element number if the value scanned for is contained in the scanned array. Under specific circumstances, ASCAN() may return a 0 (that is, the value is not found) when seeking an integer value if the searched array has been repeatedly repopulated within an iterative loop. Under these circumstances, ASCAN() functions properly in Visual FoxPro 3.0b.
|
Last Reviewed: November 1, 1997 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |