Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object form not found
Message
 
 
To
08/05/2000 22:59:41
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00367483
Message ID:
00367500
Views:
14
3 ways to solve this nightmare:
1. declare the name of the form as public variable ( make it a point that the external name and the property name are identical.)

2. make use of the name option when activating the form.
   Do Form MyFormName Name MyFormName
   MyFormName.Activate()
3. make use of the _screen.form collection property to access active object within your app.

In addition, the windowtype property has nothing to do with this problem.
jb

>To All,
>
>I need some assistance on this: if I launch a Form from another Form then close the Child Form I get an 'Object objectname not found' error. The objectname displayed is the child form's Name property.
>
>The Windowtype is 0-Modeless for both the parent and child form. Both forms are subclasses of one form class. In their Activate() method I store their form name to a global variable:
> gcCurWind = ALLT(UPPER(THISFORM.Name))
>
>To close a form, the Close button in the toolbar has this code:
> CloseCommand = gcCurWind + '.CloseEvent()'
> &CloseCommand
>
>The .CloseEvent() method has this code:
> RELEASE THISFORM
>
>I issued a command to display: WAIT WIND TYPE(gcCurWind)
>and it displays 'U' (unknown) for the child form.
>
>But if I try to callout the Child Form from the menu pad, it works fine. Am I missing something here?
>
>Please help me on this.
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform