Probleme mit SortStructuredList
Verfasst: 26.09.2006 12:19
Kann mir jemand verraten, warum folgender Code-Ausschnitt nicht funktioniert?
Code: Alles auswählen
#max_appname_length=20
;- STRUCTURES
Structure ApplicationInfo
AppName.s[#max_appname_length]
AppPath.s[1000]
EndStructure
;- LISTS
NewList Applications.ApplicationInfo()
AddElement(Applications())
Applications()\AppName="Test 1"
AddElement(Applications())
Applications()\AppName="Test 2"
SortStructuredList(Applications(), 0, OffsetOf(Applications()\AppName), #PB_Sort_String)
ForEach Applications()
Debug Applications()\AppName
Next