General information
Title:
Calculate and transform
Hello Everybody!
I always get a GPF: Memory couldnot be read Error, if I run the following code: (simplified)
use myfile as myfile
select numericfield to TempFile from myfile
use in myfile
mynumericvar=0
calculate sum(numericfield) to mynumericvar
charVar=transform(mynumericvar,"### ### ###.##") >> GPF occurs at this line
If instead of mynumericvar, I use a fix number in transform (like 123456), everything is OK.
mynumericvar is a positiv number after the sum. In case of using str() instead of transform() no problem occurs.
I tried to store mynumericvar into an other variable, but it didnot solve the problem.
Any comment?
TIA
BB
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only