Empowered Events/Source Part

WorkWithPlus has created a new Part for the Events named 'Events (by WorkWithPlus)' so that you can develop faster and simpler. 

This empowered Event Part contains the following features:

 

Tooltip over elements

If you place the mouse/cursor over a Procedure it will display the parameters that it needs.

If you place it in a variable, it will display the definition of it.

If you place it in the call of a subroutine, it will display the code of it.

EmpoweredEvents01     EmpoweredEvents02
 

New options in the toolbar

ToolbarOptions

The following options were added to the toolbar:

 

Collapse/expand all events and subroutines

It collapses all the Events and Subroutines of the Part. If you hover on a collapsed event or subroutine, the hidden code will appear as a tooltip.

 

Show/hide generated code

It will show or hide the code generated by WorkWithPlus. When it hides, a comment will appear:

/* Generated code position - Do not remove */

If you hover on the comment, the hidden code will appear as a tooltip.

 

Sort custom events and subroutines

It sorts alphabetically the events and subroutines that are not generated by WorkWithPlus.

 

Format code

When clicking on this option WorkWithPlus will:

  • Format the indentations
  • Fix the casing of the variables, reserved words (If, Else, Endif, etc.), standard functions, and calls to subroutines. 

FormatCode

 

Extract code to sub or procedure

It will extract the code in a new subroutine or in a new procedure and add the call to the sub or procedure. In the scenario of extracting the code to a procedure case, it will define all the used variables and add the parm rule.

EmpoweredEvents03
 

Define variables on the fly

After writing down the name of the variable, press ':' and the type of the new variable to define.

EmpoweredEvents04
 

Rename variables

You can rename a variable, and it will update its name in all the Parts that this element is present (Web Form, Events, Rules, etc.). If the object is generated by an instance associated with the same object (Example: WebPanel1 and its instance is WorkWithPlusWebPanel1), it will also update the variable in the instance.

EmpoweredEvents05

 

Rename subs

You can rename a sub, and it will update in all Events that the subroutine is called.

 

Suggestions to call subs

When you write down Do ', a list of the defined subroutines of that object will appear so that you can select the one you want to call.

SuggestionToCallSub

 

Suggestions when using an enum variable

When you write down a variable that is based on a domain with enumerated values, and then continue the sentence with an operator ('=', or '<>'), WorkWithPlus will suggest the name of the domain so that you select the option value. 

SuggestionForVariable

 

Automatic ‘Do Case’ for domains

When you are defining a 'Do Case', and you write down a case that depends on an enumerated variable option, WorkWithPlus will automatically create all the cases for the rest of the enumerated options

AutomaticDoCase

 

Subs references

You can right-click over a subroutine definition and select 'References' and in the Output, you will visualize all its references in order to click on them.

SubReferences

 

Variables references

You can right-click over a variable and select 'References' and in the Output, you will visualize all its references in order to click on them (in the same way as the subs references).

 

Control + click (or F12) for navigating subroutine

You can press Control + click (or F12) on the call of a subroutine, and WorkWithPlus will navigate to the subroutine definition.

ControlClick