You are here: AxTools > CodeSMART 2007 for VB6 > Documentation > Quick Reference > Standard Parameters Reference
While browsing this page, why not start downloading the evaluation setup kit (direct download, no questions asked).

Standard Parameters Reference

A standard parameter is a constant identifier that will be replaced at the insertion moment with a specific value. This value can reflect current session characteristics, code location information, date and time values etc. For example, using standard parameters, you can define where you want the cursor to be placed, or what piece of text to be selected after the insertion.

A piece of Visual Basic code with Standard Parameters is called a SMART piece of code because it is aware of the place it is inserted in and its parameters are properly modified by CodeSMART in order to reflect the insertion point's attributes.

Each standard parameter consists of a reserved word and an associated meaning. Usually they are grouped in a special popup menu where they can be identified by their names. This popup can be found in all the CodeSMART subsystems that can make use of standard parameters:

 Note

  • Since not all standard parameters are relevant for each of the above subsystems, there are cases in which certain standard parameters popup menu entries are disabled.

CodeSMART Standard Parameters and their corresponding replacements:

Name Reserved Word Description
Project Name {ProjectName} Will be replaced at paste time with the name of the active project.
Component Name {ComponentName} Will be replaced at paste time with the full name of the component that owns the currently edited code.
Member Name {MemberName} Will be replaced at paste time with the name of the currently edited member, if one.
Member Type {MemberType} Will be replaced at paste time with the type of the member currently edited (e.g. 'Sub', 'Function' or 'Property'), if one.
Control Name {ControlName} Will be replaced at paste time with the name of the control whose event method is currently edited, if one.
Begin Text Selection {SB} Marks the starting point of a code selection block.
End Text Selection {SE} Marks the ending point of a code selection block.
Cursor Position {C} Marks the point were the cursor will be placed (inside the code) after the paste operation.
Computer Name {ComputerName} Will be replaced at paste time with the name of the current machine.
User Name {UserName} Will be replaced at paste time with the name of the currently logged on user.
Date* {Date} Will be replaced at paste time with the instant date, using the default or a custom format.
Time* {Time} Will be replaced at paste time with the instant time, using the default or a custom format.
Parameters List {ParamList} Will be replaced at paste time with the current member's parameter list (name and type).
Text Prompt {Prompt} Will prompt the user for a block of text before the code paste operation.
* - The format for the {Date} and {Time} parameters can be customized using the corresponding CodeSMART Control Panel section.

See Also

Main Menu Reference
Main Toolbars Reference
Code Window Context Menu Reference
Keyboard Shortcuts Reference

Back To Top

Copyright © 2008 AxTools - CodeSMART 2007 for VB6 - Standard Parameters Reference