>Hi thanks for your reply
>With my first question i ment how can I add data to a grid that is not from a table, cursor,...
>I know this is possible in VB, but is it in VFP ???
You can display pretty much any kind of expression you like; it's not possible to directly use an array as a RowSource, although you can fake it; there's no reason to do so from my POV, since a writable cursor works, is sortable, can be queried against, etc. If I need the content of an array for a grid, I'd tend to do a CREATE CURSOR followed by APPEND FROM ARRAY, and I can get the results back to an array when I close down. Since there's a limit to the number of elements in an array, the writable cursor seems much the better way to go.