cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[HOW TO] use Intellisense in the VB script Editor (MEGA Desktop)

lrobinet
MEGA
MEGA

Is is possible to have some assistance in writing code in the MEGA Script Editor, like an Intellisense? If so, how do I activate this?

 

Copy-paste the text below into the top of the MEGA Script editor to activate Intellisense for most MEGA components:


'MegaContext(Fields,Types)

'Uses(Toolkit)
'Uses(Standard)
'Uses(Drawing)
'Uses(WEBAccess)
'Uses(WEBUtilities)
'Uses(CodeGeneration)
'Uses(ExchangeGeneration)
'Uses(Components)
'Uses(Extensions)

 

In order for this to work, the code must be written in the "explicit" manner (DIM â€¦ as …) and you must be in the function of a macro and not just in the Script Editor. 

 

A certain developer once told me that this code can be tricky. If the syntax is not recognized before the insertion point, the intellisense won't work.

 

intellisense.JPG

1 Reply

SVanSchoonlandt
Honored Contributor

hi lesley,

 

thanks for the great tip. This will come in handy.

 

Regards

 

stijn