Clarion pasing using sone function

Hey Guyz,

How do i convert and parse a string value that the same string value returns decimal value when parsed.

For eg, Say as i have two values say as $1234 and $5678 and i want to perform substraction then this string should return decimal value and perform subtraction and dollar should be ignored and should return int value answer.

Use DEFORMAT on both string values eg

sOne string(20)
sTwo string(20)
result long

    sOne = '$1234'
    sTwo = '$5678'
    result = deformat(sTwo) - deformat(sOne)

message shows (correctly) 4444

1 Like