Hi.
I found a formula in another thread about this:
stringvar x := {yourdbfield};
stringvar z;
numbervar y;
for y := 1 to len(x)
do
if isnumeric(x[y])
or x[y] = "." then
z := z + x[y]
else z;
tonumber(z)
HOWEVER when I use it it seems that my resulting numbers are multiplied all the way down through the report.
My string {VWDEPSTAT.DID} is actually a patient-ID (which in Denmark is always the same number for each patient no matter where in the system the patient is registered - always the same 8 digit social security number).
Using the above solution makes the first entry an 8 digit number equal to the social security number but the next patient's number is multiplied by 100 and so forth.
What's wrong?
Best regards Mads Stiig, Denmark
I found a formula in another thread about this:
stringvar x := {yourdbfield};
stringvar z;
numbervar y;
for y := 1 to len(x)
do
if isnumeric(x[y])
or x[y] = "." then
z := z + x[y]
else z;
tonumber(z)
HOWEVER when I use it it seems that my resulting numbers are multiplied all the way down through the report.
My string {VWDEPSTAT.DID} is actually a patient-ID (which in Denmark is always the same number for each patient no matter where in the system the patient is registered - always the same 8 digit social security number).
Using the above solution makes the first entry an 8 digit number equal to the social security number but the next patient's number is multiplied by 100 and so forth.
What's wrong?
Best regards Mads Stiig, Denmark