Joe, My apologize for not providing enough information.
userID is a string that will always hold the string equivalent of an integer. In this case, when I debug the code, it contains "1".
self.Database.Users is a Dictionary with keys that match the primary key of the table it corresponds to. The primary keys are always integers, and so the keys to the Dictionary are always integers.
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.
Thanks, Chuck _______________________________________________ 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>
