Assuming you want to enter this comment into your code and have it reflect the date you entered it, you could set up an OKL like
ON KEY LABEL SHIFT+F1 keyboard ("*" + DTOC( DATE()) + "NCA")
Then pressing Shift+F1 will give you what you want.
>I'd like to accomplish the following:
>Somehow make the comment string dynamic. For example, I'd like a portion of my comment string to always include the current date along with my initials...something like this:
>
>* - 10/20/01 NCA
>
>Any ideas? I've tried entering '* - ' + DTOC(DATE()) + 'NCA' as well as a few other combinations, tried EVAL(), etc...no banana.
>
>The end result is that VFP always preprends an asterisk to whatever I enter and the functions are ignored.
>
>Thanks,
>Clay
Rick Borup, MCSD
recursion (rE-kur'-shun) n.
see recursion.