Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Illegel operation error
Message
From
01/04/1999 11:20:04
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00204272
Message ID:
00204279
Views:
15
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform