Collection of Macros

Below you will find complete list of macros in version 3.0 and their brief descriptions. All toolbars and their items are analogs for their core sources (e.g. actions for all toolbar items for VFP File are similar for each item of VFP menu, etc...).


+Macros

IdentifierSystem_ShowMacrosList
About Opens the dialog with macros list

to the top

Options

IdentifierSystem_ShowOptions
About Opens the dialog with program settings

to the top

Info Center

IdentifierMacros_ShowInfoCenter
About Opens the main dialog of Info Center plug-in

to the top

Toggle toolbars

IdentifierMacros_ShowToolbar
About Toggles all +Macros toolbars

to the top

Toolbars...

IdentifierMacros_ShowToolbarList
About Shows the list with all available +Macros toolbars

to the top

Adjust assignments

Identifier Macros_AdjustAssignments
HotKey Alt+2

Before adjustment:

	nPointer = 0 && Init variable nPointer
	nPos = 0 && Init variable nPos
	i = 1 && Init variable i

After adjustment:

	nPointer = 0 && Init variable nPointer
	nPos     = 0 && Init variable nPos
	i        = 1 && Init variable i

to the top

Adjust Comments

Identifier Macros_AdjustComments
HotKey Alt+1

Before adjustment:

	nPointer = 0 && Init variable nPointer
	nPos = 0 && Init variable nPos
	i = 1      && Init variable i

After adjustment:

	nPointer = 0 && Init variable nPointer
	nPos = 0     && Init variable nPos
	i = 1        && Init variable i

to the top

Auto Complete

Identifier Macros_AutoComplete
HotKey Ctrl+SpaceBar, "^Space"

to the top

Code Navigator

Identifier Macros_browsecode
HotKey Alt+B
About Code Navigator was designed for quick navigation on a source code. With it's help you can go from one point in source code to another just in several clicks. Whole source code is presented as a hierarchy of structure operators, which allows to consider it as a combination of several conventional blocks.

By using office constructions «*--region» you can group areas of source code into special blocks at your will. These blocks will be presented as a one hierarchical level. When macro is loaded an auto positioning to marker's location in the editor window is made. This feature helps you to find out what block is currently visible for editing. If your source code is longer than 2 screens then this macro will essentially improve the speed of navigating on it without boring paging of screen using [PgUp] & [PgDn] buttons. Try this useful macro for some time and soon you won't be able to work without it.
Click to view full size

to the top

Collapse Keywords

Identifier Macros_CollapseKeywords
HotKey none
About Replacement of all keywords in the selected text with 4-letter abbreviations.

Before:

	Dimension aArray[ 1 ] 
	Select Customer 
	Select * From Customer Into Array aArray

After:

	Dime aArray[ 1 ] 
	Sele Customer 
	Sele * From Customer Into Arra aArray

to the top

Comment block

Identifier System_SetComments
About Comments the selected text.

Visual FoxPro does not support block comments, but block comments are very useful for quick commenting of the large blocks of text. This macro enables you to comment the whole text or part of it in absolutely no time.
HotKey Alt+C

Before:

	If This.Pointer = 0
	  This.Pointer = This.Pointer + 1
	Else
	  This.Pointer = This.Pointer -1
	EndIf

After:

	*!* Comments: Administrator [19.02.2003 08:33:16]
	*!*If This.Pointer = 0
	*!*  This.Pointer = This.Pointer + 1
	*!*Else
	*!*  This.Pointer = This.Pointer -1
	*!*EndIf

to the top

Context Help

Identifier Macros_ContextHelp
HotKey Shift+F1
About Open context help for the current word.

to the top

Expand Keywords

Identifier Macros_Expand
HotKey none
About Replaces all keyword abbreviations in the selected text with full keywords.

Before:

	Dime aArray[ 1 ] 
	Sele Customer 
	Sele * From Customer Into Arra aArray

After:

	Dimension aArray[ 1 ] 
	Select Customer 
	Select * From Customer Into Array aArray

to the top

Form and Class members show

Identifier Macros_FormMembersShow
HotKey Alt+M
About Form and class members show designed for quick navigation on the list of methods and events of a form or a class, which are opened for viewing and editing. Just in some clicks you can go to one method from another without making complex manipulations with mouse or keyboard. All objects located on the edited form are shown as a dropdown list, that allows you to go to the necessary object and then to it's method/event quickly and easily. All methods and events that have definitions are highlighted with bold font and in addition if parameter "Code Exist" is set they can be placed to the top of the list. When macro loads auto positioning on the active form and currently edited event/method is made. To open event/method for editing you may double click on it or select it and click "Go" button, "Form and class members show" form will disappear. If your form/class has a lot of objects or they are just hidden under others, this macro will improve speed of selecting of necessary event/method without boring tedious actions which are presented in Fox Pro. Try this macro for some time and very soon you wonÒt be able to work without this useful tool.
Click to view full size

to the top

Indent block

Identifier System_BlockRight
HotKey Alt+RightArrow, "Alt+Right"
About Moves all lines in the selected text one symbol to the right.

Before:

	If This.Pointer = 0
	  This.Pointer = This.Pointer + 1
	Else
	  This.Pointer = This.Pointer -1
	EndIf

After:

 
	 If This.Pointer = 0
	   This.Pointer = This.Pointer + 1
	 Else
	   This.Pointer = This.Pointer -1
	 EndIf

to the top

Insert class

Identifier Macros_AddClass
HotKey none
About Inserts the class template into the text.

The dialog with parameters for the new class will appear after calling the Insert Class macro:

You need to type the name and description of the new class and also choose the base class. After that the new class will be added into the text.
You can change the class template by modifying the %Macros_Path%\Templates\po_addclass.h template file.

to the top

Insert Date & User

Identifier Macros_def_date
HotKey Alt+D
About Inserts the current date and the user name into the text.

to the top

Insert function

Identifier Macros_AddFunction
HotKey none
About Inserts the function template into the source code.
The dialog with parameters for new function will appear after calling the Insert Function macro:

You need to type the name, description and parameters of the new function. After that the new function will be added into the text.
You can change the function template by modifying the %Macros_Path%\Templates\po_addp.h template file.

to the top

Insert method

Identifier Macros_AddMethod
HotKey none
About Inserts the method template into the source code.
The dialog with parameters for a new method will appear after calling the Insert Method macro:

You need to type the name, description and parameters of the new method. After that the new method will be added into the text.
You can change the method template by modifying the %Macros_Path%\Templates\Po_addm.h template file.

to the top

Insert in text

Identifier Macros_AddInText
HotKey Ctrl+Ins
About Opens menu with Insert Class, Insert Function, and Insert Method commands.

to the top

Invert quotes

Identifier Macros_InvertQuotes
HotKey none
About Inverts quotes in the selected text. Single quotes are inverted into double quotes and vice versa.

Before:

	cString = "This string contains the substring 'this substring'"

After:

	cString = 'This string contains the substring "this substring"'

to the top

Lower case

Identifier Macros_LowerCase
HotKey Ctrl+DownArrow,"Ctrl+DownArrow"
About Changes the case of all letters in the selected text to lower.

Before:

	If This.Pointer = 0
	  This.Pointer = This.Pointer + 1
	Else
	  This.Pointer = This.Pointer - 1
	EndIf

After:

	if this.pointer = 0
	  this.pointer = this.pointer + 1
	else
	  this.pointer = this.pointer - 1
	endif
			

to the top

Open debug window

Identifier Macros_open_debug
HotKey Ctrl+T
About Opens the debug window.

to the top

Proper case

Identifier Macros_ProperCase
HotKey none
About Capitalizes initial letters of all words in the selected text.

Before:

	if This.pointer = 0
	  This.pointer = This.pointer + 1
	else
	  This.pointer = This.pointer - 1
	endif

After:

	If This.Pointer = 0
	  This.Pointer = This.Pointer + 1
	Else
	  This.Pointer = This.Pointer - 1
	Endif

to the top

Services menu

Identifier Macros_Services
HotKey Alt+?
About Opens the menu with service macros.

to the top

Uncomment block

Identifier System_UnComments
HotKey
About Removes comments from the selected block of text.

Before:

	*!* Comments: Administrator [19.02.2003 08:33:16]
	*!*If This.Pointer = 0
	*!*  This.Pointer = This.Pointer + 1
	*!*Else
	*!*  This.Pointer = This.Pointer -1
	*!*EndIf

After:

	If This.Pointer = 0
	  This.Pointer = This.Pointer + 1
	Else
	  This.Pointer = This.Pointer -1
	EndIf

to the top

Unindent block

Identifier System_BlockLeft
HotKey Alt+LeftArrow, "Alt+Left"
About Moves all lines in the selected text one symbol to the left.

Before:

	 If This.Pointer = 0
	   This.Pointer = This.Pointer + 1
	 Else
	   This.Pointer = This.Pointer - 1
	 EndIf

After:

	If This.Pointer = 0
	  This.Pointer = This.Pointer + 1
	Else
	  This.Pointer = This.Pointer - 1
	EndIf

to the top

Upper case

Identifier Macros_UpperCase
HotKey Ctrl+UpArrow,"Ctrl+UpArrow"
About Changes the case of all letters in the selected text to upper.

Before:

	If This.Pointer = 0
	  This.Pointer = This.Pointer + 1
	Else
	  This.Pointer = This.Pointer - 1
	EndIf

After:

	IF THIS.POINTER = 0
	  THIS.POINTER = THIS.POINTER + 1
	ELSE
	  THIS.POINTER = THIS.POINTER - 1
	ENDIF

to the top

List installed languages

IdentifierMacros_ListInstallLng"
About Shows the dialog with installed languages for +Macros

to the top

Multi Clipboard Copy...

IdentifierMacros_MultiClipBoardCopy"
About Copies selected text into the first free pocket of +Macros multi clipboard

to the top

Multi Clipboard Cut...

IdentifierMacros_MultiClipBoardCut"
About Cuts selected text into the first free pocket of +Macros multi clipboard

to the top

Multi Clipboard Paste...

IdentifierMacros_MultiClipBoardPaste"
About Pastes text from on of the pockets of +Macros multi clipboard

to the top

User-menu-creation example

IdentifierSystem_ExampleMenu
About Example of creating your own item in VFP menu

to the top

User Menu Bar example

IdentifierMacros_ExampleMenuBar
About Example of creating your own submenu in VFP menu

to the top

SQL Assistant

Identifier Macros_SqlAnalyzerShowWindow
HotKey Ctrl + F6

Check and execute any SQL requests to any ODBC data source.

+Macros SQL Assistant Additional Macro is a part of +Macros toolkit for Visual FoxPro (VFP) developers. This macro extends capabilities of VFP Integrated Development Environment (IDE) allowing you to use Visual FoxPro mechanisms for checking SQL requests to any ODBC data source.

It's very useful in case you apply Visual FoxPro to create a client for a large corporate database (MS SQL Server, Oracle etc.) and in other cases when your data source is not Visual FoxPro native and you must use ODBC technology.

SQL Assistant Macro has three basic abilities:

  • it can connect to any ODBC data source described in your system (to view list of your data sources, open Windows Control Panel and double-click the "ODBC 32" icon),
  • it can perform any SQL request to this source,
  • and it can disconnect from the source.

So at the beginning of your work you can create a connection to the data source you want to use. If connection established successfully, SQL Assistant macro will add a new window (called "SQL command") to your IDE windows list.

SQL command window

In this window you can type any SQL command, press Ctrl-F5 and then SQL Assistant Macro will try to execute it. If your command is SELECT-like and if it is correct, SQL Assistant will open a new window containing result of your request. Also it'll show how much time your request runs.

SQL result window

Thus you get fast and handy instrument to optimize your requests by trying quickly some variants of request, check their times and select the best one.

And there's another way to use SQL Assistant Macro. When you edit your program code you can select any SQL command in it and press Ctrl-F5 - and SQL Assistant Macro will automatically insert this command in "SQL command" window and try to execute it, so you can check correctness and running time of your SQL requests on the fly, without compiling and starting project in whole!

Also SQL Assistant Macro saves information about connection (that you made at the start) into special +Macros database and it keeps connection alive until you use its "Disconnect" command. Because of that if you close Visual FoxPro and open it later, you can use SQL Assistant Macro with the same data source as before, without repeating connection operations. And if you want to change data source you can use SQL Assistant's "Connect" command again and choose a new data source, then SQL Assistant macro will automatically close previous connection and open the new one.

If your project contains hundreds and thousands of SQL commands, it's too long to debug and tune them by compiling and running project in whole just to get another "SQL syntax error" message. Use the +Macros SQL Assistant Macro to check those commands one by one on the fly and save your time!

Download SQL Assistant 1.0 (for +Macros 2.5 and earlier)


to the top

SQL Assistant ...

IdentifierMacros_SqlAnalyzer"
About Drop down menu with all available SQL Assistant macros

to the top

SQL Assistant Execute

IdentifierMacros_SqlAnalyzerExecute"
About Execute SQL command

to the top

SQL Assistant Connect

IdentifierMacros_SqlAnalyzerConnect"
About Create SQL Connection

to the top

SQL Assistant Disconnect

IdentifierMacros_SqlAnalyzerDisconnect"
About Release SQL Connection

to the top

Bookmarks

Identifier Macros_ShowProcedureList
HotKey Alt+R

Quick and easy navigation through the Visual FoxPro project source code.

+Macros Bookmarks Macro: Quick and easy navigation through the Visual FoxPro project source code.

+Macros Bookmarks Additional Macro is a part of +Macros toolkit for Visual FoxPro (VFP) developers. This macro extends capabilities of VFP Integrated Development Environment (IDE) providing a convenient way for quick and easy navigation through the project source code.

When you open source file this macro analyses its contents and makes a list of Visual FoxPro definitions (FUNCTION, PROCEDURE, DEFINE CLASS etc.). Then you can jump back to the beginning of any of them just in two clicks: the first one to get a list and the second one to choose a definition from it - and you're on the spot! No more boring and tiresome scrolling of kilobytes of text!

In addition to this automatically created list of bookmarks you can make your own bookmarks at any place of the source code. Do you have a hardly debugging cycle in a very long procedure definition? Make a bookmark on it and you can get there again and again in above-mentioned two clicks!

At last, you can create an individual list of bookmarks for every source file in your project. All these lists are stored in special +Macros database and don't disappear when you exit Visual FoxPro, so they can be used in many working sessions, until your project is done. Plenty of source code - and you can get on any spot just in two seconds!

+Macros Bookmarks Macro really accelerates your development process in several times saving your valuable time for more important work then long-pressing the PgUp/PgDn buttons again and again.

Bookmarks Commands

+Macros Bookmarks Additional Macro offers several useful commands for quick and easy navigation through the Visual FoxPro source code.

  • Add\Delete Bookmark - adds new bookmark into current line of source code or remove bookmark from current line if it was here.
  • Next Bookmark - moves cursor to next bookmark in source code.
  • Prev Bookmark - moves cursor to previous bookmark in source code.
  • Remove All Bookmarks - removes all bookmarks in current file.
  • Show Procedures & Bookmarks - shows the list of procedures, functions, class definitions and bookmarks for current source file. You can easily find any procedure, function in your source file with the help of this dialog.

+Macros Bookmarks Macro: List of procedures, functions, class definitions and bookmarks for current source file.

Download Bookmarks 1.0 (for +Macros 2.5 and earlier)


to the top

Add\Delete Bookmark

IdentifierMacros_AddDelBookmark
About Sets or clears bookmark in the current line of FoxScript code.

to the top

Next Bookmark

IdentifierMacros_NextBookmark"
About Goes to the next bookmark in currently opened FoxScript code.

to the top

Prev Bookmark

IdentifierMacros_PrevBookmark"
About Goes to the previous bookmark in currently opened FoxScript code.

to the top

Remove All Bookmarks

IdentifierMacros_RemoveAllBookmarks"
About Clears all bookmarks in current editor

to the top
Design by Nicolas Fafchamps