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