Function VersusConcentratorPage
nsDialogs::Create /NOUNLOAD 1018
Pop $VERSUS_IP_DIALOG
${If} $VERSUS_IP_DIALOG == error
Abort
${EndIf}
${NSD_CreateGroupBox} 0u 0u 150u 140u "Versus Concentrator IP List"
${NSD_CreateListBox} 10u 15u 131u 76u ""
Pop $VERSUS_IP_LISTBOX
${NSD_CreateText} 10u 97u 131u 14u ""
Pop $VERSUS_IP_TEXTBOX
${NSD_CreateButton} 10u 117u 51u 16u "Add Conc IP"
Pop $VERSUS_IP_ADD_BUTTON
${NSD_OnClick} $VERSUS_IP_ADD_BUTTON VersusConcentratorAddIP
${NSD_CreateButton} 70u 117u 71u 16u "Remove Conc IP"
Pop $VERSUS_IP_REM_BUTTON
${NSD_OnClick} $VERSUS_IP_REM_BUTTON VersusConcentratorRemIP
${NSD_CreateGroupBox} 170u 0u 130u 140u "Instructions"
${NSD_CreateLabel} 190u 20u 91u 101u "Enter the IP of each versus conentrator here."
nsDialogs::Show
FunctionEnd
Function VersusConcentratorLeave
FunctionEnd
Function VersusConcentratorAddIP
${NSD_GetText} $VERSUS_IP_TEXTBOX $0
${NSD_LB_AddString} $VERSUS_IP_LISTBOX $0
${NSD_SetText} $VERSUS_IP_TEXTBOX ""
FunctionEnd
Function VersusConcentratorRemIP
${NSD_LB_GetSelection} $VERSUS_IP_LISTBOX $0
${NSD_LB_DelString} $VERSUS_IP_LISTBOX $0
FunctionEnd
Iterate over all listbox values not just selected
I have an interface where I add IP addresses to a listbox using a textbox and I want to then iterate over all of those IP addresses in the "Leave" function of my page... how do I get each string in a listbox one at a time to do something with it? Here is some code I have so far: