Joseph J. Strout wrote:

At 4:23 PM -0700 4/6/06, Charles Ross wrote:

From what you say, I would think that the problem is that Val() returns a Double, which means that Val("1") returns 1.0, not 1, and 1.0 isn't a valid key in the Dictionary, so I get the error about the nonexistent key.


Yep, that sounds about right to me. If this is something you'll need to do a lot, you might want to add your own IntVal function, that takes a string and converts it to an integer.

Best,
- Joe

Why not just use the 'numeric' string as the key and bypass the conversion step?

Ken

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to