Lantica Software Support Center
Lantica Software Home Page


Knowledgebase

Documentation addition to @SpecCommand


The documentation for the @SpecCommand is insufficient in the Sesame Programming Guide. To run an export, this command requires more arguments than the documentation shows: (filename, custom separator, custom delimiter, tabbed, custom, no separator, ignore fixed, all, none, header). These correspond to the fields in the export dialog and the RunExportSpec command. Below is an example of how to export a set of data from a file. Spec is saved as "All Data".

#include "sbasic_include.sbas"
var vRt as String
/*
Arguments:
Filename
Custom separator character
Custom delimiter character
Tabbed
Use custom separator
No separator
Ignore fixed
All
None
Use custom delimiter
Header
*/
	vRt = @SpecCommand(SPEC_OPERATION_LOAD, SPEC_TYPE_EXPORT, "All Data")
	vRt = @SpecCommand(SPEC_OPEATION_RUN, SPEC_TYPE_EXPORT, myfile.txt, ";", "", "0", "1", "0", "1", "0", "1", "0", "0")