Retrieve() method isis for Visual Basic only, as only Visual Basic supports passing OLESAFEARRAY by reference.
Your user account isn't marked with License verified badge. Did you purchase AmiBroker license?
Only users with License verified badge are allowed to post on this forum.
So before posting, make sure you verify your license as explained here.