Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid row changes after calling a form
Message
From
25/05/2011 14:00:13
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01511669
Message ID:
01511749
Views:
174
1. Is there any code in the Load(), Init(), or Activate() events?
2. Do you have any code associated with the Data Environment?
3. What happens if you create a blank form (based on Form, not a subclass of it) the DO FORM to it and see if problem persists. If the problem doesn't happen, then it's probably something in the form subclass you're using, or perhaps the objects you've put on the form (note: since it's possible you have an object dragged off boundary of the screen, you might want to check dropdown list in the property sheet to see if there any objects that are unaccounted for in the visual display).

>I do have a timer on my 1st form, but the gets disabled before I call my 2nd form.
>
>I've changed the click code to
>
>messagebox("forms\toutfloor")
>
>I'm being really slow here, but this doesn't call my form? Are you just testing it it's my 2nd form that's causing the problem?
>
>Just calling the messagebox means I don't get the problem, as soon as I do any DO FORM command, makes the grid row go to the top.
>
>Even if my second form is empty, the row still goes to the top of the grid for the calling form?
>
>>>Hi Naomi
>>>
>>>I don't have a GO TOP anywhere in my code.
>>>
>>>When I set my 1st form to Private Session, my date fields get set to CENTURY OFF, and my alias names seem to be not right?
>>>
>>>I'll do some investigation....
>>>
>>Let's do a simpler test for now.
>>
>>Keep the default session for the main form
>> Put messagebox('Here is Edit form') instead of do form to call the editing form.
>>
>>Do you still have the problem?
>>
>>Also, do you have timers?
Previous
Reply
Map
View

Click here to load this message in the networking platform