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)
Emerson Santon Reed
"One Developer CAN Make a Difference. A community CAN make a future." - Craig Boyd