From: University Malaya Khairi on 14 Apr 2010 22:54 Hi guys Currently I' working on Matlab Builder NE documentation: Advanced Configuration of a WebFigure>Overview>Manually Installing WebFigureService>Retrieving Multiple WebFigures From a Component>Working With Functions That Return Multiple WebFigures In an Array as the Output Here's my Visual Basic code Imports MyComponent Imports MathWorks.MATLAB.NET.WebFigures Imports MathWorks.MATLAB.NET.Arrays Partial Class _Default Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim myDeployedComponent As _ New MyComponentclass() Dim outputs As MWArray() = _ myDeployedComponent.getKnot(4) WebFigureControl1.WebFigure = _ New WebFigure(outputs(0)) WebFigureControl2.WebFigure = _ New WebFigure(outputs(1)) WebFigureControl3.WebFigure = _ New WebFigure(outputs(2)) WebFigureControl4.WebFigure = _ New WebFigure(outputs(3)) End Sub End Class And I got this error: .... MWMCR::EvaluateFunction error ... Error using ==> getKnot Too many output arguments.. Source Error: Line 12: New MyComponentclass() Line 13: Line 14: Dim outputs As MWArray() = _ Line 15: myDeployedComponent.getKnot(4) Line 16: Any idea what's wrong? The build was successful. Thanks in advance. Amirul
|
Pages: 1 Prev: ??? Attempt to reference field of non-structure array Next: Image overlay |