How to catch integer from Text?

bangswit
bangswit Member Posts: 265
hi all , How to catch integer from Text?
for example if i have data ' 9.0000' then it means 9
and if i have data ' ' it means 0
thanks

Comments

  • pduck
    pduck Member Posts: 147
    Try EVALUATE() but to get 9 out of 9.000 it depends on your machines local settings if "." ist definied as decimal sign. If not you need to program a parse loop.
  • bangswit
    bangswit Member Posts: 265
    the problem is.... how to ignore spaces...??
  • vijay_g
    vijay_g Member Posts: 884
    Have you tried with string functions?
  • bangswit
    bangswit Member Posts: 265
    vijay_g wrote:
    Have you tried with string functions?

    how to do that?
  • navuser1
    navuser1 Member Posts: 1,334
    bangswit wrote:
    vijay_g wrote:
    Have you tried with string functions?

    how to do that?


    Dear bangswit,

    What will be the integer value of the text 9.876 ??
    Now or Never
  • bangswit
    bangswit Member Posts: 265
    navuser1 wrote:
    bangswit wrote:
    vijay_g wrote:
    Have you tried with string functions?

    how to do that?


    Dear bangswit,

    What will be the integer value of the text 9.876 ??

    done already...
    i change to decimal
    so using delchr