local dimension laTemp(1)>That's because that line didn't do what you thought it did in VFP 6. It created two variables, a scalar called dimension and an array called laTemp. VFP 7 no longer permits variable declarations without commas between them, so it found this error.
local array laTemp(1)I hope this does what I think it should, at least MSDN said so.