Using the Task List Manager
You can keep track of tasks using the Task List Manager, which stores tasks in the FoxTask.dbf table file. You can create the following types of tasks:
**Shortcut **References a specific line of code you might want to edit or view later.
User-defined Specifies a to-do or information item you might want to track. These are added manually.
Other A custom task. You must add this type of task programmatically in your application.
Note Make sure to set the Type field of the custom task to "O" in FoxTask.dbf file, which is referenced by the _FOXTASK system variable. For more information, see _FOXTASK System Variable.
To open the Task List Manager
- On the Tools menu, click Task List.
For more information, see Task List Manager Window.
Working with Tasks
You can perform many actions in the Task List Manager, such as add, edit, prioritize, set status for, and delete tasks.
Adding Tasks
You can add shortcut and user-defined tasks in the Task List Manager.
To add a shortcut task
- Open the program file in which you want to create the shortcut.
- In the code editing window, select the line of code that you want to create as a shortcut.
- On the Edit menu, point to Bookmarks and click Toggle Task List Shortcut.
You can also add a shortcut by doing one of the following after selecting the line of code:
- Right-click the selected code and click Add Task List Shortcut.
- Press ALT+F2 to add or remove the shortcut.
- Press and hold the CTRL key, and then double-click the Editor's Selection Margin.
Shortcut tasks are indicated by an arrow icon in the task type column.
To add a user-defined task
In the Tasks window, click Click here to add a new task in the Contents column.
A cursor appears in the text box.
Type information about the task you want to perform.
When you are finished, press RETURN or click outside the text box.
The task is added to the end of the list so you can enter additional information.
User-defined tasks are indicated by a person/task icon in the task type column.
Editing Tasks
You can edit a task directly in the Task List or using the Task Properties dialog box. The Task Properties dialog box contains the Task and Fields tabs, which displays information for all available fields, even if they are not shown in the Tasks window.
Note Double-clicking a shortcut task in the Tasks window opens the appropriate editing window and moves directly to that shortcut.
To edit a task in the Task Properties dialog box
- In the task type column (third column from the left), double-click the icon next to the task.
- In the Task Properties dialog box, click the Task tab.
- Edit the fields and settings you want.
You can also open the Task Properties dialog box by right-clicking the task, and clicking Open Task.
Prioritizing Tasks
You can set and organize priorities for tasks.
To set a priority for a task
- In the priority column, indicated by an exclamation mark (!), click the box for the task you want
- From the list, select a priority.
You can organize tasks by priority by clicking the priority column header. You can also enter a due date for a task.
Marking Tasks
You can mark tasks to indicate their status as read or complete in the Task List Manager.
Marking Tasks as Read
Tasks that are not yet read appear in bold. You can mark tasks as read when you are finished reading about the task.
To mark a task as read
Right-click the task, and click Mark as Read.
When a task is read, it no longer appears in bold.
You can also mark a task as read by opening the Task Properties dialog box, clicking the Task tab, and selecting the Read check box.
Marking Tasks as Complete
You can mark tasks as complete when you are finished with the task.
To mark a task as complete
In the task list column, or second column from the left, select the check box for the task you want to complete.
When a task is complete, it appears as strikethrough text.
You can also mark a task as complete by right-clicking the task, and clicking Mark as Complete or by opening the Task Properties dialog box, clicking the Task tab, and selecting the Complete check box.
Deleting Tasks
You can delete tasks in the Task List Manager.
**Note **Shortcut tasks are deleted automatically when you remove the shortcut in the editing window.
To delete a task
- Right-click the task, and click Delete Task.
Adding Files to User-Defined Tasks
Shortcut tasks have a file automatically associated with them. You can add file associations to user-defined or other tasks, although it is not required.
To add a file association
- In the File Name field for the task, type the full path and name of the file and any additional information required, such as line or method.
You can also add a file association by opening the Task Properties dialog box, and entering the file name in the File Name field.
Opening Files for Editing
You can open and edit files associated with tasks.
To open and edit a file associated with a task
- Double-click the task in the Tasks window.
You can also right-click shortcut tasks or user-defined tasks that have file associations, and click Open File.
Editing Custom Fields
You can edit custom fields that exist in the Task List Manager.
To edit custom fields
In the task type column (third column from the left), double-click the icon next to the task.
In the Task Properties dialog box, click the Fields tab.
A list of available custom fields appears.
Cleaning and Editing the Task List Table
You can clean the Task List table and edit the structure of the user-defined columns table.
To clean the Task List table
- Right-click the Tasks window, and click Options.
- In the Tasklist Options dialog box, click Clean Up FoxTask.
To edit the structure of the user-defined columns table
- Right-click the Tasks window, and click Options.
- In the Tasklist Options dialog box, click Edit Structure.
Customizing the Task List Manager
You can customize the view of your Task List Manager in several ways:
**Sorting tasks **You can sort the task list by clicking on the column header of the field by which you want to sort. Clicking a column repeatedly toggles that field between ascending/descending order.
Filtering task types You can filter the types of tasks you want to display in the Task List by selecting specific task types from the Show Tasks submenu of the Task List context menu. The submenu contains options to display shortcuts, user-defined and other Tasks.
Choose fields for viewing You can choose which fields you want to view in the Task List by selecting the Column Chooser menu item from the Task List context menu. A Columns picker dialog box appears so you can add new fields using drag-and-drop directly to the Task List. To remove a field, right-click the column header and select the Remove This Column menu item.
Adding custom fields You can add custom fields to your Task List. Custom fields are stored in a separate table from your main _FOXTASK (Foxtask.dbf) table. This custom fields table must have a UniqueID field, so it can be linked to the field in the Foxtask table. You can edit Custom fields from the Fields tab of the Task Properties dialog box.
You can add a new or existing custom fields table in the Options dialog box. Access the Options dialog box from the Options menu item of the Task List context menu item. All custom fields appear in the Columns Chooser dialog box, so you can add them to or remove them from the Task List.
See Also
Task List Manager Window | _FoxTask System Variable | _TASKLIST System Variable | Creating Bookmarks and Task List Shortcuts