docs

Home All functions Legacy functions Categories

vuMailLastError()

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.

Description

Gets the current last-error text using the original vuMail compatibility behavior.

Return value / error codes

Example (Clarion)

ROUTINE:Test_vuMailLastError   ROUTINE
DATA
RC  LONG

  CODE
  RC = vuTestSetLastError('This is a forced test error string from Clarion')
  STOP('RC=' & RC & '  vuMailLastError()=' & vuMailLastError())

Notes

Home All functions Legacy functions Categories