cancel
Showing results for 
Search instead for 
Did you mean: 

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

Solved
Frequent Contributor

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

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é
Tags (2)
1 Reply
Contributor

Re: How to start to reach/to make a GetRoot and then some getCollect​ion

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