Lantica Software Support Center
Lantica Software Home Page
Order Sesame Getting Started Support Center Contact Us Company Downloads Q&A ™  
Search

Knowledgebase Home

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") 

Properties ID: 000253   Views: 2524   Updated: 13 years ago
Filed under:
Troubleshooting
Programming
Form/Database Design
Working With Your Data / Records

Copyright Lantica Software, 2003-2025 All rights reserved