... FOR I:= 1 TO MlCount( cAllEntries ) cName := MemoLine( cAllEntries,,I) cEntry := GetProfString( "Devices",cName,"") J := 2 WHILE ! EMPTY(cPort := StrToken(cEntry,J++,",")) // AADD(aDevices,TRIM(cName)) AADD(aDevices,TRIM(cName) + "," + CENTRY) // CHIDIAK ENDDO NEXT RETURN aDevices HTH Richard[code][/code]