Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Activeform not an object problem
Message
 
 
To
29/03/2004 20:18:03
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00890642
Message ID:
00890658
Views:
26
Evelyn,

>in the first search, mygrid1 highlights the found record. but after the second try, i get error "activeform is not an object".

Somewhere in the code you did not post you must have a reference to _screen.ActiveForm, and and on your second try there is no form currently active. In general you need to test that before you can use it:
if ( type( "_screen.ActiveForm" ) = "O" )
   * there is a form active
   _screen.ActiveForm.SomeMethodCall()
endif
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform