In SX Microcontrollers, SX/B Compiler and SX-Key Tool, ems1965 wrote: How can I do this In SX/B for the SX28. It's just a quick sorting routine. [code] Sort: Do Flip=0 For Index = 0 to 7 If Sensor(Index)<Sensor(Index+1) Then Flip=1 Temp=Sensor(Index) Sensor(Index)=Sensor(Index+1) Sensor(Index+1)=Temp Endif Next Loop Until Flip=0 RETURN [/code] Apparently I can't index an array this way. What alternatives are there? Thanks, Eric ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=174704 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)