Quote from
Bob Olsen on August 26, 2026, 6:19 pm
I'm trying to get all the folders in a location into a ListBox, but I'm only getting the first folder. I've checked that it displays the folder variable count correctly in the debugger.
:OppdaterNotatMapper
FileList "[PubDir]Data\Notater\" "Folders" "[NotatMapper]"
If "[NotatMapper]" "<>" "True"
ListBoxDeleteItem "Notater" "1"
ListBoxSize "Notater" "[AntallMapper]"
StrParse "[NotatMapper]" "[#13]" "[Mapper]" "[x]"
Loop "1" "[AntallMapper]" "[i]"
ListBoxAddItem "Notater" "0" "[Mapper[i]]"
EndLoop
.ListBoxSort "Notater" "True"
EndIf
Return
I'm trying to get all the folders in a location into a ListBox, but I'm only getting the first folder. I've checked that it displays the folder variable count correctly in the debugger.
:OppdaterNotatMapper
FileList "[PubDir]Data\Notater\" "Folders" "[NotatMapper]"
If "[NotatMapper]" "<>" "True"
ListBoxDeleteItem "Notater" "1"
ListBoxSize "Notater" "[AntallMapper]"
StrParse "[NotatMapper]" "[#13]" "[Mapper]" "[x]"
Loop "1" "[AntallMapper]" "[i]"
ListBoxAddItem "Notater" "0" "[Mapper[i]]"
EndLoop
.ListBoxSort "Notater" "True"
EndIf
Return