[#BloombergLP-bdlar-bdlat_enumFromString] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlar.adoc[bdlar]::bdlat_enumFromString :relfileprefix: ../../ :mrdocs: Assign the enumerator value matching the specified `string` of the specified `stringLength` to the specified `result`. Return 0 on success, and a non‐zero value with no effect on the object if `string` and `stringLength` do not match any enumerator. == Synopsis Declared in `<bdlar_enumref.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int bdlat_enumFromString( xref:BloombergLP/bdlar/EnumRef.adoc[EnumRef]* result, char const* string, int stringLength); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#