General information
Category:
Coding, syntax & commands
>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
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