Jazz Soft Contact us?   JazzSoft@live.com     English   English  Japanese  Chinese (Traditional)  Chinese (Simlified)
Factory Automation & Yield Management Solution Provider 
Skip Navigation LinksHome > Products > Swing > Swing SECS I Reference > Properties > Active

Jazz Soft has been moved from Japan to New York in 2024.

Swing SECS I Reference   

Properties
Active
Appearance
BaudRate
BorderStyle
CommPort
DeviceID
IniFile
IniSection
Log
LogFile
Master
MSEC
Retry
Show
T1
T2
T3
T4

Methods
Config
LoadIni
Send

Events
Errors
Read
SelMsg
Written

Active Property

If this property is set to True, ActiveX control will open serial port using the condition specified by CommPort Property and BaudRate Property. To know port has been opened successfully or not, check Active Property is True or False. If this property is set to False, then port will be closed. If you forget to close serial port when you terminate application, don’t worry, ActiveX control automatically close serial port.

Syntax

Visual Basic



Visual C++


Return Value

Example

Visual Basic

.CommPort = 0  ' Com1
.BaudRate = 9600  ' 9600 bps
.Active = True  ' Open
If Not .Active Then
  MsgBox "Error : Cannot open serial port!"
End If


Visual C++

m_secs.SetCommPort(0);  // Com1
m_secs.SetBaudRate(9600);  // 9600 bps
m_secs.SetActive(true);  // Open
if(m_secs.GetActive())
  MessageBox("Error : Cannot open serial port!");

Remarks

See Also

Contact us?   JazzSoft@live.com
  Copyright © 1997 - 2024 Jazz Soft, Inc.