Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid row changes after calling a form
Message
 
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:
01512287
Views:
50
The weird thing with this poblem is that I have a cancel button on my child form that when pressed doesn't save anything to the files.

Even when the user uses this command button, the record in the grid set to the 1st record in the grid?

>Can you should the replace command. Also, the safe practice is to save the current record number, do replace, restore the record number, e.g.
>
>lnCurRec = recno("MyTable")
>replace ...
>goto lnCurRec in MyTable
>
>
>>Hi Thomas
>>
>>I'm using REPLACE to save the details.
>>
>>>Hi Robin,
>>>
>>>as you use memory vars in the form, what do you do to write those values back in the grid cursor?
>>>REPLACE , GATHER or something else?
>>>
>>>>Hi
>>>>
>>>>I have a grid on my 1st form that lists jobs.
>>>>
>>>>When a user clicks on one of the columns I run a modal form that allows the user to edit some of the jobs details for the row selected,
>>>>
>>>>The modal form uses memory variables
>>>>
>>>>I then save the changes, and release the form, the row changes to the 1st row in my grid on the 1st form?
>>>>
>>>>As a test I've even changed the form I call to an empty one, it still moves the grid row to the top?
>>>>,
>>>>
>>>>I don't get it?
>>>>
>>>>TAI
Rob
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform