PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

  • Overview
  • How to proceed?
  • Enabling the code history
  • Viewing the code history
  • Restoring a code found in the history
  • Clearing the code history
  • History of a code line (project found in the SCM (Source Code Manager))
  • Notes
  • Saving the code history
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Overview
Managing the code history is used to:
  • store the entire code of each modified process.
  • restore the code from a given date, once this code was mistakenly deleted or modified.
The management of code history is available for the processes:
  • of project,
  • of windows and pages,
  • of reports,
  • of queries,
  • of classes,
  • of sets of procedures.
This feature is not available.
Versions 19 and later
Note: If the project is found in the SCM (Source Code Manager), you have the ability to quickly view the modified elements. See History of a code line for more details.
New in version 19
Note: If the project is found in the SCM (Source Code Manager), you have the ability to quickly view the modified elements. See History of a code line for more details.
Note: If the project is found in the SCM (Source Code Manager), you have the ability to quickly view the modified elements. See History of a code line for more details.
How to proceed?

Enabling the code history

To enable the code history in your project:
  1. Select "Tools .. Options .. Options of code editor".On the "Home" pane, in the "Environment" group, expand "Options" and select "Options of the code editor".
  2. In the "Code" tab, check "Save the history of code modifications".
Notes:
  • To disable the code history, uncheck this option.
  • If several modifications are performed in the code of a project, the size of the files containing the code history can become quite large.

Viewing the code history

To view the code history of your project:
  1. Display the process whose history must be viewed.
  2. Select "Code .. History .. View the history of modifications". The window for viewing the history appears.On the "Code" pane, in the "Other actions" group, expand "History" and select "View the history of modifications". The window for viewing the history appears.
  3. Click the versions found on the left of the window to scroll the modifications performed on the current process. This window allows you to:
    • see the differences between the selected element and the current version ( button).
    • print the version displayed ( ).
    • delete the current modification.

Restoring a code found in the history

To restore a code found in the history:
  1. Display the history of current process ("Code .. History .. View the history of modifications").Display the history of current process: on the "Code" pane, in the "Other actions" group, expand "History" and select "View the history of modifications".
  2. Find the code to restore.
  3. Select the code to restore (with the mouse, [Ctrl]+[A], ...).
  4. Copy the selected code into the clipboard ("Copy" from the popup menu or [Ctrl]+[C]).
  5. Close the window for code history.
  6. In the code window, select the code to replace (with the mouse, [Ctrl]+[A], ...).
  7. Paste the clipboard the content ("Paste" from popup menu or [Ctrl]+[V]).

Clearing the code history

This method allows you to delete the modifications specific to a process.
To clear the code history:
  1. Display the process whose history must be cleared.
  2. Select "Code .. History .. Clear the history".On the "Code" pane, in the "Other actions" group, expand "History" and select "Clear the history".
Caution: If you clear the history of a process, the history of this process cannot be displayed anymore. The next modifications made to this process will be automatically stored if the code history is enabled.
Note: The window for code history can also be used to delete the current modification ( button).
Versions 19 and later

History of a code line (project found in the SCM (Source Code Manager))

When a project is found in the SCM, the code editor proposes an advanced history of the code line.
During a click on the date, a tooltip allows you to:
  • Find out since when the modification was performed.
  • View the code modification that was performed: In this case, the SCM window used to compare the code versions is displayed.
  • View all the modifications: In this case, the SCM window used to compare the versions of the current element is displayed.
  • Access the history of the element: In this case, the SCM window used to list the history of current modifications is displayed.
Use conditions: To use this feature, the following conditions must be fulfilled:
  • "Date and Author" option enabled: On the "Display" pane, in the "Help for edit" group, check "Display the date and the author" (F6 key).
  • The code lines must have been modified and checked back in in version 19 (or later).
Note: If a comment was entered when the modified element was checked back in, this comment is displayed in the tooltip.
New in version 19

History of a code line (project found in the SCM (Source Code Manager))

When a project is found in the SCM, the code editor proposes an advanced history of the code line.
During a click on the date, a tooltip allows you to:
  • Find out since when the modification was performed.
  • View the code modification that was performed: In this case, the SCM window used to compare the code versions is displayed.
  • View all the modifications: In this case, the SCM window used to compare the versions of the current element is displayed.
  • Access the history of the element: In this case, the SCM window used to list the history of current modifications is displayed.
Use conditions: To use this feature, the following conditions must be fulfilled:
  • "Date and Author" option enabled: On the "Display" pane, in the "Help for edit" group, check "Display the date and the author" (F6 key).
  • The code lines must have been modified and checked back in in version 19 (or later).
Note: If a comment was entered when the modified element was checked back in, this comment is displayed in the tooltip.

History of a code line (project found in the SCM (Source Code Manager))

When a project is found in the SCM, the code editor proposes an advanced history of the code line.
During a click on the date, a tooltip allows you to:
  • Find out since when the modification was performed.
  • View the code modification that was performed: In this case, the SCM window used to compare the code versions is displayed.
  • View all the modifications: In this case, the SCM window used to compare the versions of the current element is displayed.
  • Access the history of the element: In this case, the SCM window used to list the history of current modifications is displayed.
Use conditions: To use this feature, the following conditions must be fulfilled:
  • "Date and Author" option enabled: On the "Display" pane, in the "Help for edit" group, check "Display the date and the author" (F6 key).
  • The code lines must have been modified and checked back in in version 19 (or later).
Note: If a comment was entered when the modified element was checked back in, this comment is displayed in the tooltip.
Notes

Saving the code history

This management of the history creates a "History" sub-directory in the directory of the project. This directory contains the following sub-directories:
  • WDP: history of project processes
  • WDW: history of processes of windows
  • WWH: history of processes of pages (WEBDEV only)
  • WDC: history of modifications of classes
  • WDE: history of processes of reports
  • WDR: history of processes of queries
  • WDG: history of processes for the sets of procedures (or server procedures)
  • WWN: history of processes for the sets of browser procedures (WEBDEV only)
In each sub-directory, ".FIC", ".NDX" and ".MMO" files corresponding to the name of windows, project, ... contain the code history for each element. These files can take a large amount of space after a little while. They can be:
  • directly delete them in Windows Explorer.
  • cleared from the code editor.
Caution: The code history will not be displayed anymore if these files are deleted or cleared. If the code history is enabled:
  • the next modifications made to the code will be automatically saved,
  • the files will be re-created if necessary.
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment