Gets and sets the alarm text for specified alarm ID.
構文
|
Property ALTX(lALID As Long) As String
|
|
CString GetAltx(long lALID)
void SetAltx(long lALID, LPCTSTR lpszNewValue)
|
戻り値
使用例
If ALID was not registered, user cannot set value. If user wants to get the list of registered ALID, take following steps.
First, read ALIDCount property value.
|
Dim lCount As Long
lCount = .ALIDCount
|
|
long lCount = m_ctrl.GetALIDCount();
|
Since ALIDCount property returns the number of registered ALID, the index should be between 0 and (ALIDCount - 1). Convert index into ALID using ToALID method.
|
Dim lALID As Long
lALID = .ToALID(0)
|
|
long lALID = m_ctrl.ToALID(0);
|
Once ALID were determined, it is possible to access ALCD property and ALTX property.
|
Dim nALCD As Integer
nALCD = .ALCD(lALID)
|
|
int nALCD = m_ctrl.GetAlcd(lALID);
|
Enumerate all the ALIDs using “for” loop. Following is the entire source code.
|
Dim lCount As Long
lCount = .ALIDCount
Dim lCnt As Long
For lCnt = 0 to lCount – 1
Dim lALID As Long
lALID = .ToALID(lCnt)
Dim nALCD As Integer
nALCD = .ALCD(lALID)
Dim strALTX As String
strALTX = .ALTX(lALID)
Next lCnt
|
|
long lCount = m_ctrl.GetALIDCount();
for(long lCnt=0;lCnt<lCount;lCnt++)
{
long lALID = m_ctrl.ToALID(0);
int nALCD = m_ctrl.GetAlcd(lALID);
String strALTX = m_ctrl.GetAltx(lALID);
}
|
特記事項
The length of ALTX is limited up 40 characters by SEMI Standards, however, SavoyGem doesn't have such regulation.
User can send any length of alarm text.
参照
|