PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

  • Overview
  • How to proceed?
  • Enabling the automatic prefixing
  • Dsabling the automatic prefixing
  • Creating a programming charter
  • Modifying a programming charter
  • Modifying the programming charter used
  • Enabling/Disabling the display of the prefixes in the code editor
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
A programming charter is used to automatically prefix the name of all the variables and the name of all the project elements (window, report control, class, ...). This automatic prefixing is used to easily identify and/or find an element of a given type.
In the following example, the type of the controls used can be easily identified:
Note: You can also find out the type of an element via the tooltip displayed when the element is hovered by the mouse cursor:
How to proceed?

Enabling the automatic prefixing

To enable the automatic prefixing:
  1. Display the project description ("Project .. Project description").Display the project description: on the "Project" pane, in the "Project" group, click "Description".
  2. Display:
    • WINDEVWINDEV Mobile the "Options" tab.
    • WEBDEV - Server codeWEBDEV - Browser code the "Advanced" tab.
  3. Check "Automatically prefix the variables and the elements found in the project".
  4. Choose the programming charter to use. The "Standard" charter (supplied with WINDEV, WEBDEV or WINDEV Mobile) is used by default.
  5. Validate. When creating new elements or new variables, the corresponding prefixing will be automatically added.
Notes:
  • To enable the automatic prefixing, you also have the ability to select "Project .. Programming charter .. Use the charter".Another solution to enable the automatic prefixing: on the "Project" pane, in the "Other actions" group, expand "Charter" and select "Use the charter".
  • When creating a new project the automatic prefixing is enabled by default.
  • The names of variables containing less than 3 characters are not prefixed.

Dsabling the automatic prefixing

To disable the automatic prefixing:
  • deselect "Project .. Programming charter .. Use the charter".
  • WEBDEV - Server codeWEBDEV - Browser code display the "Advanced" tab of the project description ("Project .. Project description") and uncheck "Automatically prefix the variables and the elements found in the project".
  • WINDEVWINDEV Mobile display the "Options" tab of the project description ("Project .. Project description") and uncheck "Automatically prefix the variables and the elements found in the project".
To disable the automatic prefixing, use one of the following methods:
  • on the "Project" pane, in the "Other actions" group, expand "Charter" and deselect "Use the charter".
  • WEBDEV - Server codeWEBDEV - Browser code in the "Advanced" tab of the project description, uncheck "Automatically prefix the variables and the elements found in the project".
  • WINDEVWINDEV Mobile in the "Options" tab of the project description, uncheck "Automatically prefix the variables and the elements found in the project".
Reminder: To display the project description, on the "Project" pane, in the "Project" group, click "Description".

Creating a programming charter

To create a programming charter:
  1. Display the project description ("Project .. Project description").Display the project description: on the "Project" pane, in the "Project" group, click "Description".
  2. Display:
    • WINDEVWINDEV Mobile the "Options" tab.
    • WEBDEV - Server codeWEBDEV - Browser code the "Advanced" tab.
  3. Click the "Create a programming charter" button and validate the information window that is displayed.
  4. Select the location of the new programming charter and enter its name (".CDP" file).
  5. Validate ("Save" button). The new programming charter is created.
    By default, this charter corresponds to the "Standard" charter (supplied with WINDEV, WEBDEV or WINDEV Mobile).
  6. Click the "Edit" button.
  7. Define the different prefixes and validate.
Note: The "Standard" programming charter cannot be modified.

Modifying a programming charter

To modify a programming charter:
  1. Display the project description ("Project .. Project description").Display the project description: on the "Project" pane, in the "Project" group, click "Description".
  2. Display:
    • WINDEVWINDEV Mobile the "Options" tab.
    • WEBDEV - Server codeWEBDEV - Browser code the "Advanced" tab.
  3. Select the programming charter to modify.
  4. Click the "Edit the charter" button.
  5. Define the new prefixes and validate.
Notes:
  • These modifications will be taken into account when creating new elements or new variables.
  • The "Standard" programming charter cannot be modified.
  • To edit the current programming charter, you can also select "Project .. Programming charter .. Edit the charter".Another solution to edit the current programming charter: on the "Project" pane, in the "Other actions" group, expand "Charter" and select "Edit the charter".

Modifying the programming charter used

To modify the programming charter used:
  1. Display the project description ("Project .. Project description").Display the project description: on the "Project" pane, in the "Project" group, click "Description".
  2. Display:
    • WINDEVWINDEV Mobile the "Options" tab.
    • WEBDEV - Server codeWEBDEV - Browser code the "Advanced" tab.
  3. Select the programming charter to use (in the "Programming charter" list or via the "..." button).
  4. Validate.
Note: The same programming charter (".CDP" file) can be used in several WINDEV, WEBDEV and WINDEV Mobile projects.

Enabling/Disabling the display of the prefixes in the code editor

You have the ability to display (or not) the different prefixes in the code editor.
To enable or disable the display of prefixes in the code editor, use one of the following methods:
  • select/deselect "Project .. Programming charter .. Display the prefixes".on the "Project" pane, in the "Other actions" group, expand "Charter" and select/deselect "Display the prefixes".
  • in the description window of the project, check/uncheck "Hide the display of prefixes" in the "Options" or "Advanced" tab.
    Reminder: to display the project description, on the "Project" pane, in the "Project" group, click "Description".
    in the description window of the project, check/uncheck "Add the prefixes automatically" in the "Options" or "Advanced" tab.
    Reminder: to display the project description, on the "Project" pane, in the "Project" group, click "Description".
  • click .
Minimum required version
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment