Functions Library

Started by David Martin, November 08, 2009, 09:05:55 AM

Previous topic - Next topic

David Martin

In one of your examples you use some terms such as:

' {DATE MM-DD-YYYY}
' {DATE YYYY-MM-DD}
' {DATE DD-MM-YYYY}
' {PROJECT_NAME}
' {COMPANY_NAME}
' {PRODUCT_NAME}
' {PRODUCT_VERSION}
' {FILE_VERSION}

What all is available there?  Looking for one for TIME...

Paul Squires

That was an idea that I was starting to flush out towards the end of the FF3 beta cycle. I haven't really explained it at all anywhere.

Here is the idea: Basically, you can embed any of the "macros" into your code and when the code snippet gets "expanded" then the macro will be replaced by the text for the date, project name, company name, etc....

For example,

Create new code module in the Functions Library. Call it "dodate" or something.
Enter this for the code :
' The date is: {DATE YYYY-MM-DD}
Set the snippet to "Expand" on Ctrl+Enter (ie. the setting on the Details tab)

Now close the Functions Library and go back to a place in your project's code. Type "doenter" and press Ctrl+Enter. The result should be: ' Insert date: 2009-11-08

See what I mean? I agree that there could be many more of these macros that could be added. Just let me know what ones you (or anyone else) would like to see. 

So, is that you in the avatar? I'll have to save that picture so I can track you down if I am ever in Pennsylvania!!! :D

Paul Squires
PlanetSquires Software

David Martin

Yeah, I figured how what is already there worked...I am trying to use it to make a function header and for some documentation.

Time is the only thing that comes to mind right now...

Yep, that is my mug...handsome devil ain't I????