Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Illegel operation error
Message
De
01/04/1999 11:20:04
Chris Johnsen
Grange Mutual Insurance
Beaverton, Oregon, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00204272
Message ID:
00204279
Vues:
14
>hello,
>
>I am getting the "this application performed an illegal operation " error everytime I print more than one report. Can anyone tell me what causes that??
>sherry

VFP doesn't always correctly append a null value to the end of the "expr" field in the FRX file. Here's a little program that I run from the directory where I store my report files:

* Get a list of report files in current directory.
nNumReports = ADIR(aReports,"*.FRX")

* Loop through reports, adding nulls when appropriate.
FOR nCurrentReport = 1 TO nNumReports
USE (aReports[nCurrentReport,1]) EXCLUSIVE ALIAS frxfile
REPLACE ALL expr WITH expr + CHR(0) FOR objtype = 1 AND RIGHT(expr,1) # CHR(0)
PACK
USE
NEXT
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform