BUG: BROWSE FORMAT with Character RANGE Causes Syntax ErrorLast reviewed: June 27, 1995Article ID: Q122864 |
The information in this article applies to:
SYMPTOMSIssuing a BROWSE FORMAT command that includes a character RANGE in the format file causes a "Syntax Error."
CAUSEWhen the RANGE clause is used in a FORMAT file, you can usually include character, date, and numeric data ranges of acceptable values that are used with an @ get editing region. However, if FoxPro encounters the RANGE clause while reading the format file specified in the SET FORMAT command, a "Syntax Error" is generated.
RESOLUTIONUse a VALID clause on the field instead of a range as in this example:
* Format file :CUSTENT.FMT @ 1,0 SAY "CNO" @ 1,10 GET cno PICTURE "XXXXX" VALID testcno() @ 2,0 SAY "Company" @ 2,10 GET Company PICTURE "XXXXXXXXXXXXXXXXXXXX" PROCEDURE testcno IF cno < "22222" OR cno > "55555" WAIT WINDOW "Invalid CNO entered - Must be 22222 to 55555" RETURN 0 ENDIF * End of Format File STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Steps to Reproduce Behavior
|
Additional reference words: FoxWin 2.50 2.50a 2.50b 2.60 2.60a buglist2.50
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |