MyFlight
Technical User
- Feb 4, 2002
- 193
Question,
I have a script for exporting Dialing directories that work s fine. However I would like to be able to combine all the directories in ONE file prior to exporting it. Does anyone know a quick way to do this?
Here is my current script.
Sure, here is a modified version of the WaitListS2 procedure that will get the number of nodes as well (value will be placed in the integer variable iNumNodes):
PROC WaitListS2
string sLine = " 2 of 5) is active with 12 Channels"
integer iLen
string sTemp
WHEN TARGET 0 CLEAR
WHEN TARGET 1 CLEAR
WHEN TARGET 2 CLEAR
WaitListStat = 2
strlen sLine iLen ;Get length of string
while iLen > 0 ;While the string has at least one character in it...
if rstrcmp sLine " " 1 ;Compare the first character in the string to a space
strdelete sLine 0 1 ;If the first character is a space, delete it from the string
else
exitwhile ;Else exit the while loop
endif
endwhile
substr sTemp sLine 0 1 ;Get node number
atoi sTemp iNode
substr sTemp sLine 6 1 ;Get number of nodes from system
atoi sTemp iNumNodes
ENDPROC
your assistance is greatly appreciated.
I have a script for exporting Dialing directories that work s fine. However I would like to be able to combine all the directories in ONE file prior to exporting it. Does anyone know a quick way to do this?
Here is my current script.
Sure, here is a modified version of the WaitListS2 procedure that will get the number of nodes as well (value will be placed in the integer variable iNumNodes):
PROC WaitListS2
string sLine = " 2 of 5) is active with 12 Channels"
integer iLen
string sTemp
WHEN TARGET 0 CLEAR
WHEN TARGET 1 CLEAR
WHEN TARGET 2 CLEAR
WaitListStat = 2
strlen sLine iLen ;Get length of string
while iLen > 0 ;While the string has at least one character in it...
if rstrcmp sLine " " 1 ;Compare the first character in the string to a space
strdelete sLine 0 1 ;If the first character is a space, delete it from the string
else
exitwhile ;Else exit the while loop
endif
endwhile
substr sTemp sLine 0 1 ;Get node number
atoi sTemp iNode
substr sTemp sLine 6 1 ;Get number of nodes from system
atoi sTemp iNumNodes
ENDPROC
your assistance is greatly appreciated.