Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Erik Gomez
  Where is Erik Gomez?
 Victorias City, Negros Occidental
 Philippines
 Erik Gomez
 To: Christian Tabligan
  Where is Christian Tabligan?
 Bacolod City, Neg. Occ.
 Philippines
 Christian Tabligan
 Tags
Subject: RE: Loading error...THISFORM cannot be use within a method
Thread ID: 78462 Message ID: 78552 # Views: 1 # Ratings: 0
Version: Visual FoxPro 6 Category: General VFP Topics
Date: Wednesday, October 05, 2005 12:53:08 PM         
   


> > > Hi,
> > > I have encountered a problem everytime I used to run my form with data environment. The messagebox appears like "Error in loading...THISFORM cannot be use within a method".
> > >
> > > Hoping for your reply...
> > >
> > > Christian Tabligan
> > > CSA-B, Student
> > >
> > > Visual FoxPro is like a game...need to explore until you reach your goal to success!!!

> >
> > Sounds like you have a filtered index created on a table that is using a reference to a value from the form (i.e. INDEX ON field FOR value = ThisForm.[something] ).
> >
> > Try opening your tables one by one until you find the one that has the errant index. Then you will have to delete the CDX for that table and re-create it. Then, in your form, find the code that does this and either do it another way, or ensure that the index created using this is deleted before the form closes.
> >
> > Regards
> > Andy Kramek
> > Microsoft MVP (Visual FoxPro)
> > Tightline Computers Inc, Akron Ohio, USA

>
> Hi,
> Yah! I have a filter command but I never created an index on the table. After I execute the filter command and I tried to exit and run it again, that's the time the error occurs...
>
>
>
> Visual FoxPro is like a game...need to explore until you reach your goal to success!!!

hi,

just to add to Andy's reply, if you really need to filter, then issue a Set Filter To when you exit your form.

IMHO, using filters in large tables is not a way to go, use SQL-Select instead.

hth,
Erik Gomez
www.foxite.com - The Home of The Visual FoxPro Experts
Personal Weblog

ENTIRE THREAD

Loading error...THISFORM cannot be use within a method Posted by Christian Tabligan @ 10/4/2005 6:15:44 AM
RE: Loading error...THISFORM cannot be use within a method Posted by Boudewijn Lutgerink @ 10/4/2005 9:48:46 AM
RE: Loading error...THISFORM cannot be use within a method Posted by Erik Gomez @ 10/4/2005 9:58:35 AM
RE: Loading error...THISFORM cannot be use within a method Posted by Christian Tabligan @ 10/4/2005 11:15:31 AM
RE: Loading error...THISFORM cannot be use within a method Posted by Erik Gomez @ 10/4/2005 11:46:36 AM
RE: Loading error...THISFORM cannot be use within a method Posted by Andy Kramek @ 10/4/2005 1:42:58 PM
RE: Loading error...THISFORM cannot be use within a method Posted by Scott Malinowski @ 10/4/2005 6:05:29 PM
RE: Loading error...THISFORM cannot be use within a method Posted by Christian Tabligan @ 10/5/2005 7:06:24 AM
RE: Loading error...THISFORM cannot be use within a method Posted by Andy Kramek @ 10/5/2005 12:29:26 PM
RE: Loading error...THISFORM cannot be use within a method Posted by Erik Gomez @ 10/5/2005 12:53:08 PM