docs

Home All functions Legacy functions Categories

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

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

Home All functions Legacy functions Categories