>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,
>ClayIn VFP 7.0 you can use Intellisense to create the following:
Create an entry called something like CHG and enter:
LPARAMETER oFoxCode
local lcRetVal, lcDate
oFoxcode.valuetype = "V"
lcRetVal = '* - ' + DTOC(DATE()) + ' NCA'
return lcRetVal
then you can write CHG and press space and voilá.