This works in the same way as fgl_grid_export() except that start_index and end_index are omitted, as in effect they are automatically filled with the current active grid’s visible view.
fgl_grid_viewexport("scr_contacts","file","csv",[my_file_name])
For the two grid export functions, Lycia allows you to specify the divider when using ‘csv’ as the export format. This is useful for documents that are separated by other characters other than commas. For example, to specify that the document in the above example is a pipe separated document, use the following line of code prior to any export function call:
CALL fgl_setproperty("gui", "array.grid.CSVSeparator", "|")