docs

Home All functions Legacy functions Categories

vuExtractMailAddr()

vuExtractMailAddr(*CSTRING InText),CSTRING,PROC,PASCAL,RAW,NAME('vuExtractMailAddr')

This legacy-style text helper is declared as returning LONG at the Clarion boundary. The numeric return value is actually the address of a null-terminated C string buffer and can be consumed directly in Clarion string expressions. 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

Extracts an email address using the original vuMail compatibility behavior.

Parameters

Return value / error codes

Example (Clarion)

src CSTRING(128)

src = 'Support Team <help@example.com>'
MESSAGE('Extracted address: ' & vuExtractMailAddr(src))

Notes

Home All functions Legacy functions Categories