Hi there!
Thats the way I do it in "Version 5.0"
DECLARE aSelectedList
DECLARE iIndex 1
DECLARE iSelectedIndex 1
DECLARE iFeaturesNumber
DECLARE sFeatureStatus
TREEVIEW FEATURE COUNT GET ( iFeaturesNumber )
WHILE $iIndex < $iFeaturesNumber
TREEVIEW FEATURE SELECT GET ( $iIndex, sFeatureStatus )
IF $sFeatureStatus == "On"
TREEVIEW FEATURE NAME GET ( $iIndex, aSelectedList[$iSelectedIndex] )
++iSelectedIndex
ENDIF
++iIndex
ENDWHILE
Thats the way I do it in "Version 5.0"
DECLARE aSelectedList
DECLARE iIndex 1
DECLARE iSelectedIndex 1
DECLARE iFeaturesNumber
DECLARE sFeatureStatus
TREEVIEW FEATURE COUNT GET ( iFeaturesNumber )
WHILE $iIndex < $iFeaturesNumber
TREEVIEW FEATURE SELECT GET ( $iIndex, sFeatureStatus )
IF $sFeatureStatus == "On"
TREEVIEW FEATURE NAME GET ( $iIndex, aSelectedList[$iSelectedIndex] )
++iSelectedIndex
ENDIF
++iIndex
ENDWHILE