Format problem

make

Member
Hi everybody !!

I want to convert a character variable like this "23.659.111" into an integer variable like this "23659111" .

I think this is possibke, but i dont know how ?

Greets
make
 

Crittar

Member
define variable charvar as character no-undo.
define variable intvar as integer no-undo.

assign
charvar = "23.659.111"
intvar = integer(replace(charvar,".","").

The replace function in the above assign replaces the . with no space. The integer function will then work correctly.

Hope this helps.

:awink:
 
Top