I'm using the code below to create a .txt file of data from my application. In the programming below, I'm showing two @SpecCommand(SPEC_OPERATION_RUN, SPEC_TYPE_EXPORT) statements for clarity to explain my problem.
I have the exact same programming (cut and past is wonderful!) but when I used the @SpecCommand(SPEC_OPERATION_RUN, SPEC_TYPE_EXPORT) statement to write to the SAMPLES.txt, it easily creates the file. BUT, when i run the same command but try to write to the VENDOREVAL.txt file, I get a message saying "ASCII Export failed to create the file..."
Any idea what might be causing one file not to write, while the other works fine?
Any help is greatly appreciated!!
NHUser
#include "sbasic_include.sbas"
var vRt as String
/* Arguments: filename custom seperator character custom delimiter character tabbed use custom sep no sep ignore fixed all none use custom delim header */
vRt = @SpecCommand(SPEC_OPERATION_LOAD, SPEC_TYPE_EXPORT, "All Data") vRt = @SpecCommand(SPEC_OPERATION_RUN, SPEC_TYPE_EXPORT, "D:\apps\sesame2\data\VendorEval.txt", ",", """", "0", "1", "0", "0", "0", "0", "1", "0")
vRt = @SpecCommand(SPEC_OPERATION_RUN, SPEC_TYPE_EXPORT, "D:\apps\sesame2\data\samples.txt", ",", """", "0", "1", "0", "0", "0", "0", "1", "0")
@MsgBox("All the data has been exported to the VendorEval.txt file.","","")
|