Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid row changes after calling a form
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01511669
Message ID:
01512287
Vues:
51
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform