Convert to int

Hi There!
could you help me please?

I need to convert to int a generic value …

image

Have you tried Cint() yet?

1 Like

thank you, yes, I was doing something wrong … now is working fine …

finally I use … cint((valor.ToString.Replace(“,0000”,“”)).Replace(“.”,“”)) I dont know if exists another form but that is working

for clarification. if your number has decimal in it then the compiler might think it is a real number, not integer, which cannot cast into Int.