by COBS Tech Support » Wed Jun 14, 2006 6:05 pm
What version of CAPITAL are you running? And what maintenance release?
Fortunately, or unfortunately, depending on your perspective on this issue, SCRWrite() in CAPITAL 7.41 and above will cause the 'save' button to enable. This will, unfortunately, cause badly written scripts behind user screens to fail to run properly in later releases. At present in earlier versions of CAPITAL, SCRWrite() is suppressed in many instances, particularly if placed inside field formulas.
SCRWrite() should never be called from a field formula, whatever version of CAPITAL you use. But only from the Screen Script.
Write() should not be called except inside a 'post save' event, as you would then be altering a database record that either does not yet exist, or you would be overriding the functionality of the 'undo' button among other problems. Doing this may also cause random 'assertion' or 'internal' error messages to appear and is not recommended.