In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: John, Try this: [code] copySerialNumber: temp1 = __Param1 for temp2 = 0 to 7 __RAM(temp1) = SerialNum(temp2) INC temp1 next return [/code] When you pass an array name to a subroutine you are actually passing it's ADDRESS in the virtual __RAM array. Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=109681#m109704 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)