Main Content

isconnection

Determine if Money.Net connection is valid

Description

v = isconnection(c) returns logical 1 (true) if c is a valid Money.Net connection. Otherwise, isconnection returns logical 0 (false).

example

Examples

collapse all

Create Money.Net connection c using a user name and password.

username = 'user@company.com';
pwd = '999999';

c = moneynet(username,pwd);

Validate the Money.Net connection c.

v = isconnection(c)
v =

  logical

   1

isconnection returns 1, indicating a successful connection.

Close the Money.Net connection.

close(c)

Validate that the Money.Net connection c is closed.

v = isconnection(c)
v =

  logical

   0

isconnection returns 0, indicating a closed connection.

Input Arguments

collapse all

Money.Net connection, specified as a connection object created using moneynet.

Output Arguments

collapse all

Valid Money.Net connection, returned as a logical 1 (true) that specifies a successful connection, or logical 0 (false) that specifies a closed or invalid connection.

Version History

Introduced in R2016b