PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Supported types
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Retrieves a value of a variable for the MATLAB session.
Example
gnSessionID is int = mlInitialize()
IF ErrorOccurred() THEN
ErrorInfo(errFullDetails)
RETURN
END
...
aResult is array of 1 by 1 real = [[123]]

mlResetWorkspace(gnSessionID)
aResult = mlGetVariable(gnSessionID, "myRoot")
IF ErrorOccurred THEN
Trace("Error: " + ErrorInfo())
END

Trace("Root = " + aResult[1,1])
Syntax
<Result> = mlGetVariable(<Session Identifier> , <Variable Name>)
<Result>: Array of integers, reals, ...
Value of the sought variable.
The ErrorOccurred variable is set to True if an error occurred. To find out the error details, use ErrorInfo associated with the errMessage constant.
<Session Identifier>: Integer
Identifier of MATLAB session. This identifier is returned by mlInitialize.
<Variable Name>: Character string (with quotes)
Name of the variable to retrieve.
Remarks

Supported types

The supported types are:
  • signed and unsigned integers on 1, 2, 4 and 8,
  • reals on 4 and 8,
  • booleans,
  • characters.
Components
WINDEVReports and Queries wd230com.dll
Minimum required version
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment