Results 1 to 3 of 3

Thread: type data type <found alternate solution>

  1. #1

    Thread Starter
    Hyperactive Member dogfish227's Avatar
    Join Date
    Oct 2002
    Location
    GA
    Posts
    409

    type data type <found alternate solution>

    is their any way to declare a variable to the type that is stored in a Type varaible.

    its easier to explain with code

    VB Code:
    1. dim t as type
    2. dim a as textbox 'or any thing else
    3.  
    4. t = a.gettype
    5.  
    6. dim b as t 'it not happy with this line (Type t is not defined)
    so the above code should dim b with the same data type as a

    so it that possible to do and i just am doing it the wrong way?
    Last edited by dogfish227; May 23rd, 2004 at 10:07 PM.

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    See if you can toy with TypeCode enum .
    VB Code:
    1. Dim c As TypeCode
    Though , what you're doing doesn't make sense .

  3. #3

    Thread Starter
    Hyperactive Member dogfish227's Avatar
    Join Date
    Oct 2002
    Location
    GA
    Posts
    409
    well ive found another way to do it. im not sure what i was thinking before. i wonder how long that orange juice had been in the fridge hmm did taste a littel funny.

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