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: 188869 # Views: 2 # Ratings: 0
Version: Visual FoxPro 7 Category: Classes and Objects
Date: Tuesday, August 12, 2008 11:15:24 AM         
   


> Hi Anders,
>
> I replaced the suggested line item(1) with item(n) as you said and I am getting this "Unknown member OCRYSTALDATABASETABLES"
>
>
>
	Function ChangeDatabaseTable
> 		*-- Changes the current database table
> 		Lparameters pnIndex
> 		LOCAL lcOldError 
> 		lcOldError = ON("ERROR")
> 		ON ERROR
> 		If Type('pnIndex') <> 'N' or pnIndex <= 0 or pnIndex > This.oCrystalDatabaseTables.Count        && error occurs here
> 			ON ERROR &lcOldError
> 			Return .f.
> 		Endif
> 		This.oCrystalDatabaseTable = This.oCrystalDatabaseTables.Item(pnIndex)
> 		Return .t.
> 	EndFunc



What I suggeted was different:
This.oCrystalDatabaseTable = This.oCrystalDatabase.Tables.Item(pnIndex)


(or was it .Items(n) ?)

-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