How to set value for only string or an integer


#1

Untitled
Hello .How to set value only for a variable type(string or Int).if i enter a string name then it got to next step . but if i enter integer value in input dialog then condition must be false and again go to lastname … what is the condition to be written for lastname should contain only string value …


#2

Harsha Vardhan,
it’s all depends on your string value. you also can use InStr function(check VB Reference online for more details) as a condition to verify any character or value from the string as a condition to move forward your execution.

Hope my inputs are useful :slight_smile:


#3

Parser.xaml (18.2 KB)

This should help.


#4

it worked thanks @akhi_s27 . only string value worked . then how only integer works . i tried but it didn’t come . can u please help me with that