Hi all,
I have the following logic :
which will check if the input is numeric or not. if it’s the case a message box will display is numeric otherwise not numeric.
Whatever I put the into the input is always giving not numeric. Please this making me insane any idea what do I have to do (configuration or whatever) ??
regards,
Fathi
Anil_G
(Anil Gorthi)
December 22, 2022, 9:45am
2
@Bouslama_Fathi
Use cdbl(age) or cint(age).
You are passing a string so convert it and then check it
Cheers
Yoichi
(Yoichi)
December 22, 2022, 9:54am
3
Hi,
Which version of StudioX do you use?
It might be better to use Advanced Editor.
The condition will be as the following.
age.ToString.IsNumeric
OR
Saved.Value(Of String)("Age").ToString.IsNumeric
OR
Saved.Values(Of UiPath.Excel.ExcelValue)("Age").ToString.IsNumeric
etc.
Regards,
Yoichi:
age.ToString.IsNumeric
Hi,
I am using the following version :
still with those expression it’s not working.
regards,
Fathi Bouslama
Yoichi
(Yoichi)
December 22, 2022, 11:03am
5
Hi,
Can you try the following sample?
NewBlankTask20221221-2.zip (49.8 KB)
If it works, can you compare it with yours?
Regards,
varunk
(Varun Kumar)
December 22, 2022, 1:38pm
6
@Bouslama_Fathi
Convert the age into integer & try it will work
Thanks
Varun