| Home | All functions | Legacy functions | Categories |
vuMailLastError(),CSTRING,PROC,PASCAL,RAW,NAME('vuMailLastError')
This legacy function is declared as returning CSTRING in Clarion to preserve original vuMail template behavior. Under the hood, the export returns a pointer to a null-terminated C string buffer, and Clarion consumes it directly as text, as shown in the examples below.
Gets the current last-error text using the original vuMail compatibility behavior.
MESSAGE() and string assignment.ROUTINE:Test_vuMailLastError ROUTINE
DATA
RC LONG
CODE
RC = vuTestSetLastError('This is a forced test error string from Clarion')
STOP('RC=' & RC & ' vuMailLastError()=' & vuMailLastError())
DWORD that was actually the address of an internal C string buffer. Clarion can consume that value directly in string expressions, which is why the legacy examples use assignment and MESSAGE() style calls because the Clarion prototype is declared as CSTRING.*CSTRING output buffers.| Home | All functions | Legacy functions | Categories |