Results 1 to 2 of 2

Thread: Strange with integer!

Threaded View

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Feb 2004
    Location
    in the heart of the Mediterranean
    Posts
    1,143

    Strange with integer!

    HI,

    I have this userID that is used in a login form. It is returning and &H + integer. Strange as it was working fine . I dont have the slightest idea why.

    Code:
    Public userID as integer
    
                    bCheck = True 'indicates access permitted
                     userID = CInt(Trim(cmd.Parameters("@userID").Value))   ' (userID = &H3
                    MessageBox.Show(userID.ToString)  ' ( userID = 3)
    --------------------------------------------

    Then if I try
    Code:
    bCheck = True 'indicates access permitted
          (SuserID=3)  SuserID = CStr(cmd.Parameters("@userID").Value)
     (userID=&H3)  userID = CInt(SuserID)
                    MessageBox.Show(SuserID)
    Anyone knows what's the problem pls?
    Last edited by angelica; Sep 11th, 2008 at 11:47 PM.
    ------------------------------------------------------------------------
    If an answer to your question has been helpful, then please, Rate it!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width