>some one can help me?
>I am new in FoxPro, I want to know why do I need the array if I have the cursor option?
>Thank You
Chaim,
An array is a variable like an object is.
A cursor is a table that Foxpro internally keeps housekeeping for you.
An array being a variable can pass barriers like datasessions where cursors can't.
An array column could hold different datatypes where a cursor column cannot.
Arrays could hold a complete cursor row in one single array element as an object (or any other object ref) where cursors cannot store objects.
Apart from swapping needs of OS itself arrays are always in memory where cursors are on disk (even the smallest possible cursor could fit to memory OS holds a file handle for it).
Arrays are faster in most cases than cursors.< sigh > Arrays are limited to 65000 elements currently.
In some automation code (like Excel) arrays are the only way to pass some parameters.
Off the top of my head I think these are enough for a necessity to arrays even in Foxpro.
Cetin