>>You also can do this way:
>>
>>getArrayElement.prg
>>LPARAMETERS lnElement,taArray
>>DIMENSION taArray[ALEN(taArray)] && prevents compiler error.
>>RETURN taArray[m.lnElement]
>>
>>and I'd call it like this
>>
>>?GetArrayElement(5,@laWarnLbl)
>
>That's a very dangerous idea. You are touching/affecting the original array possibly turning a multi-column array into a single column array. EXTERNAL command is exactly what it is for.
Thanks to everyone for your help. I relayed the info to Cart and he is very grateful !
Tommy Tillman A+ NetWork+ MCP