Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calculate and transform
Message
De
05/03/1998 19:07:19
Edward Crawford
City Facilities Management
Glasgow, Royaume Uni
 
 
À
05/03/1998 18:52:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00082848
Message ID:
00082852
Vues:
26
>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

Have you tried looking at the value of mynumericvar before running TRANSFORM()? It it some strange number?

Ed
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform