PRB: SYS(2018) May Return More Than the Message Parameter (190624)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q190624 SYMPTOMS
When a table is created programmatically, the Check clause can be used to
perform field level validations. When a field level error occurs, either
the SYS(2018) or the AERRORS function can be used to display the source of
the error. In Visual FoxPro 3.0, the error message parameter that was
involved in the generated error was returned. This behavior is different in
Visual FoxPro 5.0 and 6.0. In the latter versions of Visual FoxPro, the
entire error message is returned by default.
RESOLUTION
To work around this behavior use the Error cause in the CREATE TABLE, Check
statement, as shown in the MORE INFORMATION section.
STATUS
This behavior is by design.
REFERENCES
Visual FoxPro Help; search on: SYS(2018); AERROR
Modification Type: | Major | Last Reviewed: | 12/11/1999 |
---|
Keywords: | kbprb KB190624 |
---|
|