Tuto WEBDEV 25

472 Part 13: The WLanguage basics Is there a method to easily display the syntax or the help about a function? When typing a function in the code editor: • the name of each parameter is displayed in a tooltip for the code line currently in edit. For the parameter currently in edit, hovering the parameter name with the mouse is used to display the parameter details in a tooltip. • If several syntaxes are available, it is possible to switch from one syntax to another using Ctrl + up arrow or down arrow. • the function syntax is displayed in the status bar of editor. In the help, the parameters enclosed between [ and ] are optional parameters. For the functions that require the names of data files, controls, pages or reports, the assisted input is used to display the list of project elements corresponding to the parameter of the function currently typed. Examples of assisted input for HReadFirst : the <Wizard> option is used to start a code wizard. This wizard asks you questions regarding the function use and it automatically generates the corresponding code. A help page is associated with each WLanguage function and property. This help page can be directly accessed from the editor by pressing F1 on the name of requested function or property. What are the useful shortcuts in the code editor? • To display the events of a control, method, class, procedure or report block, press F2 while on the name of the desired element. • Ctrl + F2 is used to go back to the initial process or event. To move from one process/event to another, press F2 repeatedly. To go back to the initial process or event, press Ctrl + F2 the same number of times. • Ctrl + L deletes the current line. • Ctrl + D duplicates the current line (or the selected lines) on the line below. • Tab (tab key) and Shift + Tab are used to manage the indent for the selected lines. • Ctrl + / converts the selected lines into comments, Ctrl + Shift + / removes the comments (Caution: / key on the numeric keypad). • Ctrl + R is used to automatically re-indent the displayed code.

RkJQdWJsaXNoZXIy NDQ0OA==