Use of textfield with database

Hello!
I want the text on the textfield by the end user as integer and direct the text to a database of another platform for validity and value of the text then return as boolean. Please,how can code the textfield?

Just off the top of my head…

dim myInteger as integer = val(textfield.text) dim isValid as boolean = OtherDBVerifyMethod(myInteger) return isValid

This assumes your OtherDBVerifyMethod returns a boolean.

Thanks @Tanner Lee.