<< Click to Display Table of Contents >> AdoStr2Enum Function |
![]() ![]() ![]() |
Translate a String value to a Enum value
FUNCTION AdoStr2Enum ( cEnum AS STRING, aEnum AS ARRAY ) AS DWORD
cEnum Value that has to be converted
aEnum 2 dimensional Array as returned by one of the Ado...Enum functions
DWORD NUmeric value of the cEnum
With this function you can translate a string representation into its corresponding numeric value. If the string does not represent a valid value, the VAL() of the string wil be returned
? AdoStr2Enum('adUseClient',AdoCursorLocationEnum()) // 3