# Check datatype of input text?

**URL:** <https://forum.kirupa.com/t/check-datatype-of-input-text/196051>\
**Category:** Uncategorized\
**Created:** [August 4, 2006, 10:45pm UTC](https://forum.kirupa.com/t/check-datatype-of-input-text/196051 "2006-08-04T22:45:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![FlashPirateYarr](https://avatars.discourse-cdn.com/v4/letter/f/f08c70/32.png) [@FlashPirateYarr](https://forum.kirupa.com/u/FlashPirateYarr)\
**Post date:** [August 4, 2006, 10:45pm UTC](https://forum.kirupa.com/t/check-datatype-of-input-text/196051/1 "2006-08-04T22:45:02Z")

</div>

In a project of mine for the web, I ask the user to input a number into an Input Text box, which I then store as a variable, call it inputText. If the user inputs a string of letters or anything that is not a number, I want display “Please enter a number.” I’ve looked far and wide and can’t find a way to check whether the text input by the user (a variable) is a number or not. Any help would be well appreciated.

Thanks and cheers,  
Steve
