‎14-05-2013 10:06 AM - last edited on ‎14-05-2013 12:01 PM by jhorber
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
Solved! Go to Solution.
‎14-05-2013 11:57 AM - last edited on ‎14-05-2013 12:04 PM by jhorber
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