Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Paul Gibson
  Where is Paul Gibson?
 Glasgow
 United Kingdom
 Paul Gibson
 To: tushar Kanvinde
  Where is tushar Kanvinde?
 Kolhapur, Maharastra
 India
 tushar Kanvinde
 Tags
Subject: RE: Extended info for error 107
Thread ID: 373699 Message ID: 373709 # Views: 30 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Forms
Date: Monday, March 25, 2013 5:24:38 PM         
   


> > Hi, I am getting this error on a form when I try to "batch print" customized reports for multiple accounts from a table. The "one-at-a time" button on the form works fine.
> > When I trace the error (in the batch-mode program), the error message comes out on the "report form..." line so I have no clue what triggers the error. Is there a way to find out which operator/operand generates this? Thanks...
>
> When you come to the REPORT FORM line while tracing it in the debugger, instead of running the code, you can try modifying it and taking a preview.

This is definitely a better suggestion than mine.

I have tried deliberately making a 107 error inside a report and neither Sys(2018) nor the Exception object offer any useful insights into what is possibly causing the error. I know what is causing the error because I created a simple report with three textboxes on it, two of them perfectly valid and one with a deliberate 107 error on it.

Following Tushar's suggestion I put a break into the program, when the exception was thrown I did a:

MODIFY REPORT && ... complete this


...in the command window, then went to Preview the report and was presented with this screen:



which obviously shows where my error is and from there it's a doddle to fix.

(as a side issue, I would always recommend to anyone beefing up their error handling to report lots of information about the current state of the system)

ENTIRE THREAD

Extended info for error 107 Posted by Octavian Spineanu @ 3/25/2013 3:09:04 PM
RE: Extended info for error 107 Posted by Paul Gibson @ 3/25/2013 4:38:20 PM
RE: Extended info for error 107 Posted by tushar @ 3/25/2013 4:58:51 PM
RE: Extended info for error 107 Posted by Paul Gibson @ 3/25/2013 5:24:38 PM
RE: Extended info for error 107 Posted by Octavian Spineanu @ 3/25/2013 8:59:31 PM