Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
REPORT FORM to FILE
Message
From
16/05/2002 11:38:01
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
REPORT FORM to FILE
Miscellaneous
Thread ID:
00657527
Message ID:
00657527
Views:
61
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
Map
View

Click here to load this message in the networking platform