View Single Post
Old 10-18-2004, 07:00 PM
kinook kinook is online now
Join Date: 03-06-2001
Location: Colorado
Posts: 5,753
As you discovered, the test in the above example isn't foolproof because the Replace in File action only modifies the file (and logs such action) if the replacement value(s) would change the file contents. The attached updated sample uses a conditional build rule that checks the file for the existence of that attribute instead.

Also, the next release of VBP will include enhancements to the Replace in File action, including storing temporary macros for the match count and replacement count, allowing the match count to be checked in this situation.
Attached Files
File Type: bld repl_keyfileattr.bld (1.4 KB, 480 views)
Reply With Quote