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

Why does this work:

dim userIDInt as Integer = Val(UserID)
self.LoggedInUser = self.Database.Users.Value(userIDInt)

But this doesn't:

self.LoggedInUser = self.Database.Users.Value(Val(userID))

This would be an easier question to answer if you told us what self.Database.Users is, and what its Value function expects. But I note that in the first case, you're converting the double (returned by Val) to an integer before passing it to .Value. In the second case, you're not doing that; you're passing the double returned by Val directly in. There's no particular reason to expect those to be the same, unless the type of the Value parameter is Integer.

Best,
- Joe

--

Joseph J. Strout
[EMAIL PROTECTED]
_______________________________________________
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