Hi
I know theres a isNumeric(),ISdate() and isArray() function,
But is there a
isString()?? if not any equivalent??
Printable View
Hi
I know theres a isNumeric(),ISdate() and isArray() function,
But is there a
isString()?? if not any equivalent??
You can use this for any type, including Date, Array, etc.VB Code:
If TypeOf x Is String Then
thanks jmcilhinney
congratulation on the 10000 threads jmcilhinney :)
Hadn't noticed. :) Thought about it a couple of hundred ago then forgot.Quote:
Originally Posted by maged
Yeah, right Mr. "I click User CP every thirty seconds" ;)Quote:
Originally Posted by jmcilhinney
Bill
That's right. I make a couple of hundred posts every thirty seconds. ;)Quote:
Originally Posted by conipto
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 :D
Enjoy. ;)
(if I Could give to you a solution, i make this, but i can't)
If you have a String which may be an Integer use Integer.TryParse. Double, Decimal, DateTime etc also have TryParse.
way to update a 5 year old thread guys... :P