Results 1 to 11 of 11

Thread: [RESOLVED] isString function

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2006
    Location
    Madrid
    Posts
    325

    Resolved [RESOLVED] isString function

    Hi

    I know theres a isNumeric(),ISdate() and isArray() function,

    But is there a

    isString()?? if not any equivalent??

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,299

    Re: isString function

    VB Code:
    1. If TypeOf x Is String Then
    You can use this for any type, including Date, Array, etc.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2006
    Location
    Madrid
    Posts
    325

    Re: isString function

    thanks jmcilhinney

  4. #4
    Frenzied Member maged's Avatar
    Join Date
    Nov 2002
    Location
    Egypt
    Posts
    1,040

    Re: [RESOLVED] isString function

    congratulation on the 10000 threads jmcilhinney

  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,299

    Re: [RESOLVED] isString function

    Quote Originally Posted by maged
    congratulation on the 10000 threads jmcilhinney
    Hadn't noticed. Thought about it a couple of hundred ago then forgot.

  6. #6
    Frenzied Member conipto's Avatar
    Join Date
    Jun 2005
    Location
    Chicago
    Posts
    1,175

    Re: [RESOLVED] isString function

    Quote Originally Posted by jmcilhinney
    Hadn't noticed. Thought about it a couple of hundred ago then forgot.
    Yeah, right Mr. "I click User CP every thirty seconds"

    Bill
    Hate Adobe Acrobat? My Codebank Sumbissions - Easy CodeDom Expression evaluator: (VB / C# ) -- C# Scrolling Text Display

    I Like to code when drunk. Don't say you weren't warned.

  7. #7
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,299

    Re: [RESOLVED] isString function

    Quote Originally Posted by conipto
    Yeah, right Mr. "I click User CP every thirty seconds"

    Bill
    That's right. I make a couple of hundred posts every thirty seconds.

  8. #8
    New Member
    Join Date
    Aug 2011
    Posts
    1

    Re: [RESOLVED] isString function

    If you want to check the type of the variable its good, but if you want to check the contained of the variable its not a good solution

    E.g : If you create a string var, and that you put a numbers, the type of the variable stayed "string". o)
    If TypeOf x Is String Then => Bin

    Enjoy.

    (if I Could give to you a solution, i make this, but i can't)

  9. #9
    Karen Payne MVP kareninstructor's Avatar
    Join Date
    Jun 2008
    Location
    Oregon
    Posts
    6,684

    Re: [RESOLVED] isString function

    If you have a String which may be an Integer use Integer.TryParse. Double, Decimal, DateTime etc also have TryParse.

  10. #10
    Fanatic Member
    Join Date
    Nov 2007
    Posts
    520

    Re: [RESOLVED] isString function

    way to update a 5 year old thread guys... :P

  11. #11
    Karen Payne MVP kareninstructor's Avatar
    Join Date
    Jun 2008
    Location
    Oregon
    Posts
    6,684

    Re: [RESOLVED] isString function

    Quote Originally Posted by TCarter View Post
    way to update a 5 year old thread guys... :P
    And your point is?

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