Results 1 to 2 of 2

Thread: Checking Variable type

  1. #1

    Thread Starter
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177

    Post

    Try the VB Function, TypeName(), i.e.
    Code:
    Dim iInteger As Integer
    Dim sType As String
    
    sType = TypeName(iInteger)
    MsgBox sType
    sType would contain "Integer"

    ------------------
    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]


  2. #2
    Junior Member
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    22

    Post

    Is there a function or API call I can use in VB to determine the "type" of variable I am using (given the variable name). Saying the word type I mean "Integer", "Long", "Double"

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