Discussion on:

3
Comments

Join the conversation!

Follow via:
RSS
Email Alert
0 Votes
+ -
Editor
What other uses would this technique be good for? Do you have a real life example to share?
0 Votes
+ -
Other uses
Jeff_Mason 6th Sep 2011
I have used this to compare today's date to an expiry date when generating letters. The expiry date was supplied as a custom property. The nesting allowed me to say "expires TODAY!" instead of "expires ".
I will admit though that I'm not a fan of the technique as nested functions aren't the easiest things to read and can't be documented. I often write small macros to examine fields and/or properties and then set another property value. All this requires is a simple reference to that property in the Word doc. All my contract docs do this to provide "I agree" or "we agree" according to how many parties are involved. The VBA is easy to read and can be properly documented with comments.
0 Votes
+ -
Correction
Jeff_Mason 6th Sep 2011
Very odd. I had written "date" between greater than and less than signs after "expires" and it disappeared. ' probably assumed it was a tag!
Keyboard Shortcuts:
Prev
Next
Toggle
Join the conversation
Formatting +
BB Codes - Note: HTML is not supported in forums
  • [b] Bold [/b]
  • [i] Italic [/i]
  • [u] Underline [/u]
  • [s] Strikethrough [/s]
  • [q] "Quote" [/q]
  • [ol][*] 1. Ordered List [/ol]
  • [ul][*] · Unordered List [/ul]
  • [pre] Preformat [/pre]
  • [quote] "Blockquote" [/quote]

Join the TechRepublic Community and join the conversation! Signing-up is free and quick, Do it now, we want to hear your opinion.