Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Customizing the comment string
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00571391
Message ID:
00571393
Views:
27
>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



In 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á.


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Reply
Map
View

Click here to load this message in the networking platform