General information
Category:
Reports & Report designer
Title:
REPORT FORM to FILE
The following code is from a debugging portion of code trying to solve an issue. During the process we SCAN a cursor (CursorA), unzip a file or Foxpro tables, create cursor 'CurLnkSheet' from these tables and run the report. The process runs fine for the first record in CursorA, once we move to the next record, file check one passes, but the report is wrong, it prints one detail line for the number of records in CURSORA, and File CHECK TWO fails, showing the current alias to be CURSORA. Needless to say this is driving us nuts!!!
Any help would be appreciated.
lcTFile = "c:\psfiles\psout.ps"
IF FILE(lcTFile)
ERASE (lcTFile)
ENDIF
*****FILE CHECK ONE ***********
IF LOWER(ALIAS()) # "curlnksheet"
SUSPEND
ENDIF
REPORT FORM reports\urllinks TO FILE &lcTFile
****** FILE CHECK TWO *********
IF LOWER(ALIAS()) # "curlnksheet"
WAIT WINDOW ALIAS()
SUSPEND
ENDIF
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