Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Insert datetime.now via code snippet comment block
Message
From
16/04/2008 12:13:18
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Insert datetime.now via code snippet comment block
Environment versions
Environment:
VB 9.0
Miscellaneous
Thread ID:
01311174
Message ID:
01311174
Views:
87
I am having fun with the VB code snippet editor. i want to be able to insert a comment block with my initials and current datetime and don't seem to have the magic formula. Have this in CEE but trying to figure it out in VB

'CRH: Wednesday 03/16/08
' Insert comment here
'

In the code snippet editor what should I be telling the snippet? I have tried object datetime.now but when the snippet is inserted that space is blank, waiting for input and ctrl space gives me the option of inserting New datetime.now and when I select that I get

Dim datetime As datetime.now

above my code block.

Thoughts?

(and any other cool snippet tips anyone might have - I just found out you could have Imports statements that were needed by your snippet automatically inserted if needed. *That* is very cool!)


Charles Hankey

Though a good deal is too strange to be believed, nothing is too strange to have happened.
- Thomas Hardy

Half the harm that is done in this world is due to people who want to feel important. They don't mean to do harm-- but the harm does not interest them. Or they do not see it, or they justify it because they are absorbed in the endless struggle to think well of themselves.

-- T. S. Eliot
Democracy is two wolves and a sheep voting on what to have for lunch.
Liberty is a well-armed sheep contesting the vote.
- Ben Franklin

Pardon him, Theodotus. He is a barbarian, and thinks that the customs of his tribe and island are the laws of nature.
Next
Reply
Map
View

Click here to load this message in the networking platform