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

How to start to reach/to make a GetRoot and then some getCollection

lmazurie
Honored Contributor

Hi Jean-Yves,

 

Thanks a lot because the referencement is now good.

 

in VB it's OK but I am not familiar with VB.NET but I have started to declare variables like this with no compilation error:

 

Dim oMegaCurrentEnvironment AsNew MegaMapp.MegaCurrentEnv

Dim oMegaRoot As MegaMapp.MegaRoot

 

How to start to reach/to make a GetRoot and then some getCollection ?

 

Thanks a lot

 

 

 

 

Lionel Mazurié
1 Reply

SMAINIL
Super Contributor

Hi,

 

Once you have your current environment you can use oMegaRoot = oMegaCurrentEnvironment.GetRoot to have the root.

And from the root object you have access to the GetCollection, GetSelection,... functions.

 

To avoid to declare your variable like yyyy as MegaMapp.xxxxx, add the "Imports MegaMapp" in top of your code.

 

Also have a look to the Mega help for strong namming

 

Regards,

Stéphane