AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / Editores / Editor de código
  • Overview
  • How to?
  • Enabling the code history
  • Viewing the code history
  • Restoring a code in the history
  • Clearing the code history
  • History of a line of code (project found in the SCM (Source Code Manager))
  • Notes
  • Saving the code history
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Overview
The code history allows you to:
  • keep track of every change made to the code in the different processes/events.
  • restore the code from a given date, if this code was mistakenly deleted or modified since.
The code history is available for the events or processes associated with:
  • the project,
  • windows and pages,
  • reports,
  • queries,
  • classes,
  • sets of procedures.
Note: If your project is in the SCM (Source Code Manager), you can quickly view what has been modified. For more details, see History of a line of code.
How to?

Enabling the code history

To enable the code history in your project:
  1. On the "Inicio" tab, in the "Entorno" group, expand "Opciones" and select "Code editor options".
  2. On the "Code" tab, check "Guardar historial de cambios del código".
Remarks:
  • 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. On the "Código" tab, in the "Otras acciones" group, expand "Historial" and select "Show history of modifications". The history window appears.
  3. Click the versions to the left of the window to scroll through the changes made on the current process. This window allows you to:
    • view the differences between the selected element and the current version ().
    • print the version shown ().
    • delete the current modification.

Restoring a code in the history

To restore a code in the history:
  1. View the current processing history: under the "Código" pane, in the "Otras acciones" group, pull down "Historial" and select "View modification history".
  2. Find the code to restore.
  3. Select the code to restore (using the mouse, Ctrl + A, etc.).
  4. Copy the selected code to the clipboard (Ctrl + C).
  5. Close the code history window.
  6. In the code window, select the code to replace (with the mouse, Ctrl + A, etc.).
  7. Paste the clipboard content (Ctrl + V).

Clearing the code history

This method allows you to delete the modifications specific to a process.
To clear the code history:
  1. Go to the process or event for which you want to clear the history.
  2. On the "Código", in the "Otras acciones" group, expand "Historial" and select "Clear history".
Warning If you purge the history of a treatment or event, its history can no longer be displayed. Future changes to this process or event will be automatically save if the code history is enabled.
Note The code history window can also be used to delete the current modification (button ).

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

When a project is in the SCM, the code editor proposes an advanced history of the line of code.
During a click on the date, a tooltip allows you to:
  • Find out since when the modification was performed.
  • View the code modification: In this case, the SCM window for comparing code versions is launched.
  • View all changes: In this case, the SCM window for comparing versions of the current item is launched.
  • Access element history: In this case, the SCM window listing the history of current modifications is launched.
Conditions of use: To use this feature, the following conditions must be met:
  • Option "Date and Author" enabled: Under the panel "Vista", in the group "Ayuda edición", check the option "Mostrar fecha y autor" (F6 key).
  • Lines of code must have been modified and reintegrated in version 19 or higher.
Note: If a comment has been entered when reintegrating the modified element, this comment is displayed in the tooltip.
Notes

Saving the code history

When history is enabled, a "History" subdirectory is created in the project directory. This directory contains the following subdirectories:
  • WDP: history of events associated with the project.
  • WDW: window event history.
  • WWH: history of events associated with pages (WEBDEV only).
  • WDC: class code history.
  • WDE: history of events associated with states.
  • WDR: history of events associated with queries.
  • WDG: code history of procedure collections (or server procedures).
  • WWN: code history of browser procedure collections (WEBDEV only).
In each sub-directory, ".FIC", ".NDX" and ".MMO" files corresponding to the name of the windows, the project, etc., contain the code history for each of these elements. These files can take a large amount of space after a little while. They can be:
  • deleted directly in Windows Explorer.
  • cleared from the code editor.
Warning If you delete or purge these files, the code history will no longer be displayed. If the code history is enabled:
  • the next modifications made to the code will be automatically saved,
  • the files will be recreated if necessary.
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 31/10/2024

Señalar un error o enviar una sugerencia | Ayuda local