FIX: Can't Change the Title of the Validation Error BoxLast reviewed: October 29, 1997Article ID: Q137951 |
3.00
WINDOWS
kbprg kbfixlist kbbuglist
The information in this article applies to:
SYMPTOMSThe title on the Validation Error text box cannot be changed.
CAUSEThe dialog box title is being pulled from an internal resource of Visual FoxPro, so it cannot be changed.
WORKAROUNDTrap for the rule failure within the rule's code, and present a customized error message. Let the rule return True (.T.) as in code in the "Workaround Example" section in this article.
STATUSMicrosoft 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 Behavior
Workaround ExampleChange the rule from an expression to a program or procedure that is in the Stored Procedures:
ALTER TABLE tbl1 ALTER COLUMN one SET CHECK myrule() NOVALIDATE The procedure myrule may look as follows: PROCEDURE myrule IF EMPTY(one) =MESSAGEBOX('The -one- FIELD CAN NOT BE EMPTY',0,'MY APPLICATION') ENDIFAfter the table is browsed and CTRL+Y is pressed, the customized dialog box will appear with the new title. NOTE: A blank record will still be appended to the table. This issue of the rule violation is best handled within the application's design.
|
Additional reference words: 3.00 VFoxWin fixlist3.00b buglist3.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |