From: G Lykos on
Greetings!

Example: the value of vbOkay within the VBE is 6. {i = vbOkay} yields i =
6.

Would like a construct where {sMyString = "vbOkay" : i =
UnknownFunction(sMyString)} yields i = 6

TIA!
George


From: Nigel on
Try

i = VAL(sMyString)

--

Regards,
Nigel
nigelnospam(a)9sw.co.uk



"G Lykos" <GLykos(a)CompuServe.com> wrote in message
news:%23iVJr8tqKHA.3408(a)TK2MSFTNGP06.phx.gbl...
> Greetings!
>
> Example: the value of vbOkay within the VBE is 6. {i = vbOkay} yields i
> = 6.
>
> Would like a construct where {sMyString = "vbOkay" : i =
> UnknownFunction(sMyString)} yields i = 6
>
> TIA!
> George
>
>

From: Peter T on
What's the context of your question

vbOkay - no such named constant, maybe you mean vbYes/6 or vbOK/1

Regards,
Peter T

"G Lykos" <GLykos(a)CompuServe.com> wrote in message
news:%23iVJr8tqKHA.3408(a)TK2MSFTNGP06.phx.gbl...
> Greetings!
>
> Example: the value of vbOkay within the VBE is 6. {i = vbOkay} yields i
> = 6.
>
> Would like a construct where {sMyString = "vbOkay" : i =
> UnknownFunction(sMyString)} yields i = 6
>
> TIA!
> George
>
>


From: G Lykos on
Okay - how about vbOK/1. Are you familiar with a mechanism to evaluate the
VB constant name in a string variable?

Thanks!


"Peter T" <peter_t(a)discussions> wrote in message
news:eYKRNwxqKHA.4284(a)TK2MSFTNGP04.phx.gbl...
> What's the context of your question
>
> vbOkay - no such named constant, maybe you mean vbYes/6 or vbOK/1
>
> Regards,
> Peter T
>
> "G Lykos" <GLykos(a)CompuServe.com> wrote in message
> news:%23iVJr8tqKHA.3408(a)TK2MSFTNGP06.phx.gbl...
>> Greetings!
>>
>> Example: the value of vbOkay within the VBE is 6. {i = vbOkay} yields i
>> = 6.
>>
>> Would like a construct where {sMyString = "vbOkay" : i =
>> UnknownFunction(sMyString)} yields i = 6
>>
>> TIA!
>> George
>>
>>
>
>


From: G Lykos on
Thanks for the suggestion. Consistently evaluates to 0 when applied to
string variables containing VB constant names.


"Nigel" <nigel(a)no9swspam.co.uk> wrote in message
news:uNyLDdvqKHA.6064(a)TK2MSFTNGP02.phx.gbl...
> Try
>
> i = VAL(sMyString)
>
> --
>
> Regards,
> Nigel
> nigelnospam(a)9sw.co.uk
>
>
>
> "G Lykos" <GLykos(a)CompuServe.com> wrote in message
> news:%23iVJr8tqKHA.3408(a)TK2MSFTNGP06.phx.gbl...
>> Greetings!
>>
>> Example: the value of vbOkay within the VBE is 6. {i = vbOkay} yields i
>> = 6.
>>
>> Would like a construct where {sMyString = "vbOkay" : i =
>> UnknownFunction(sMyString)} yields i = 6
>>
>> TIA!
>> George
>>
>>
>