AdoStr2Enum Function

<< Click to Display Table of Contents >>

Navigation:  Support Functions >

AdoStr2Enum Function

Previous pageReturn to chapter overviewNext page

Purpose

Translate a String value to a Enum value

 

Prototype

FUNCTION AdoStr2Enum ( cEnum AS STRING, aEnum AS ARRAY )  AS DWORD

 

Argument(s)

cEnum        Value that has to be converted

aEnum        2 dimensional Array as returned by one of the Ado...Enum functions

 

 

Return

DWORD         NUmeric value of the cEnum

 

Description

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

 

Example(s)

? AdoStr2Enum('adUseClient',AdoCursorLocationEnum()) // 3