vuMailCreateCSV(xCsvFilePath)
Clarion prototype
Prototype: vuMailCreateCSV(*CSTRING InFileName), SIGNED, PROC, PASCAL, RAW, NAME(‘vuMailCreateCSV’)
Purpose
Creates (or truncates) the target CSV file and stores it as the selected CSV used by vuMailAppendCSV().
Parameters
- xCsvFilePath (*CSTRING): Full path to the CSV file.
Return value / error codes
| Value |
Meaning |
| 1 |
CSV created and selected. |
| 0 |
Failure (for example blank path or file create failure). Error text is available through vuMailLastError(). |
Example (Clarion)
csvPath CSTRING(260)
csvPath = 'C:\Temp\mailout.csv'
IF vuMailCreateCSV(csvPath) = 0
MESSAGE('Create CSV failed: ' & vuMailLastError())
END
Notes
- If needed, parent directories are created.
- A blank path returns 0.
- AuthMode/OAuth is not used by this function.
- Legacy reference: vuMailDump.pdf, section heading vuMailCreateCSV.