Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Anders Altberg
  Where is Anders Altberg?
 Uppsala
 Sweden
 Anders Altberg
 To: information austin
  Where is information austin?
 Toronto
 Canada
 information austin
 Tags
Subject: RE: class definition not found
Thread ID: 187996 Message ID: 189399 # Views: 2 # Ratings: 1
Version: Visual FoxPro 7 Category: Classes and Objects
Date: Thursday, August 14, 2008 7:24:28 PM         
   


> Hi Anders,
>
> The problem is still there but I am not sure if its the problem with the class. I have to create crystal reports and I think the tables I m using in my proc for crystalsettings it is not the same in the crystal reports and I guess the orders of the tables should be same. I will work on it later
>
> But in the meanwhile, I get an error on this statement.
>
> PROCEDURE CrystalReportSettings 
> 	LPARAMETERS lcInvoiceId, lcReportName
> 
> 	cCrystalFile = gc_crxreportpath+lcReportName+".rpt"    && error here  

>
> I give in the path gc_crxreportpath in a free table dbpaths but I think I am getting the error because I am not passing the parameters properly and lcReportName evaluates to .F. and get the operator miss match error.
>
> That is how I m calligng the proc
>
>
CrystalReportSettings(a_printqueue.invoice_id,lpReport)

> something wrong with it?
>
>
> Thanks for the help,
> Austin

Could you put an ASSERT .F. at the beginning and inspect the parameter arguments you receive.
When you're juggling filename you should use functions like ADDBS(), FORCEPATH(), FORCEEXT() which have their own error checking.
ForceExt removes the old and adds a new extension, ForcePath substritutes a path, AddBs() adds a backslash if needed.
FORCEEXT(FORCEPATH(lcRePortName,ADDBS(gc_crxreportpath)),'rpt')


-Anders

ENTIRE THREAD

class definition not found Posted by information austin @ 8/6/2008 11:18:52 PM
RE: class definition not found Posted by Anders Altberg @ 8/6/2008 11:47:12 PM
RE: class definition not found Posted by Yousfi Benameur @ 8/7/2008 2:15:59 AM
RE: class definition not found Posted by information austin @ 8/7/2008 6:10:43 PM
RE: class definition not found Posted by Anders Altberg @ 8/7/2008 6:17:06 PM
RE: class definition not found Posted by information austin @ 8/7/2008 7:10:05 PM
RE: class definition not found Posted by Anders Altberg @ 8/7/2008 7:16:58 PM
RE: class definition not found Posted by information austin @ 8/7/2008 7:41:25 PM
RE: class definition not found Posted by Anders Altberg @ 8/7/2008 8:33:15 PM
RE: class definition not found Posted by information austin @ 8/7/2008 8:47:22 PM
RE: class definition not found Posted by Yousfi Benameur @ 8/7/2008 9:18:08 PM
RE: class definition not found Posted by Anders Altberg @ 8/7/2008 9:37:02 PM
RE: class definition not found Posted by information austin @ 8/7/2008 10:03:26 PM
RE: class definition not found Posted by Anders Altberg @ 8/8/2008 1:02:03 PM
RE: class definition not found Posted by information austin @ 8/8/2008 7:14:29 PM
RE: class definition not found Posted by Anders Altberg @ 8/8/2008 7:52:41 PM
RE: class definition not found Posted by information austin @ 8/8/2008 9:51:30 PM
RE: class definition not found Posted by Anders Altberg @ 8/9/2008 12:26:31 AM
RE: class definition not found Posted by information austin @ 8/11/2008 10:21:27 PM
RE: class definition not found Posted by Anders Altberg @ 8/12/2008 11:15:24 AM
RE: class definition not found Posted by information austin @ 8/14/2008 6:04:08 PM
RE: class definition not found Posted by Anders Altberg @ 8/14/2008 7:24:28 PM
RE: class definition not found Posted by information austin @ 8/14/2008 8:17:33 PM
RE: class definition not found Posted by Yousfi Benameur @ 8/7/2008 8:28:07 PM
RE: class definition not found Posted by information austin @ 8/7/2008 8:55:53 PM