I have a problem converting a numeric characters to numeric numbers and calculate the "sum" of those numbers; I have to use Val Function/procedure to determine if the input is a numeric character or not, the Val procedure format is: Val(S:string,V:lnteger,Code:integer)
and have to copy the numeric character to another string then extracting the numbers usin Val function for the calculation of sum as an example:
var s: string;
if the input: '25*-2g &&-+ad dd15wd'
the output should be: 38
if the input: '25 -10' the output should be 15
** I will be appreciated ur effort to help me find out how to solve this problem.