<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>11 May 2015 16:00:00 Z</lastBuildDate><pubDate>11 May 2015 10:05:00 Z</pubDate><description>I find the documentation for HSavePosition/HRestorePosition a little difficult to understand.&#13;
&#13;
http://doc.windev.com/?3044136&amp;product=WD&#13;
&#13;
According to help HSavePosition "saves the positions of all the items for which a browse is in progress".&#13;
&#13;
I wonder, what does the "position of an item" mean and what is it used for?&#13;
&#13;
Obviously it is NOT the values of the items, because, according to documentation, items have to be separately saved with the "hSaveItems" constant, and this is not done by default.&#13;
&#13;
For example, I want to handle two records of the same file in a process in the following way:&#13;
&#13;
1. I read record A and change some of its item values&#13;
2. Then I need to read record B to get one item's value from it&#13;
3. Then I continue changing the items of record A and&#13;
4 finally Hmodify record A.&#13;
&#13;
So, I suppose I have to:&#13;
&#13;
1. Read record A and change some items of it&#13;
2. FilePos is int = HSavePosition(File,hSaveItems)&#13;
3. HReadSeekFirst(record B)&#13;
4. Save the necessary item from record B to a variable&#13;
5 HRestorePosition(FilePos)&#13;
5. continue changing values of items of record A&#13;
6. HModify(record A)&#13;
&#13;
Is this correct and sufficient to avoid any mess-up between the two records?&#13;
&#13;
Best regards&#13;
Ola</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52024-clarification-for-hsaveposition-hrestoreposition/read.awp</link><title>Clarification for HSavePosition/HRestorePosition?</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52024-clarification-for-hsaveposition-hrestoreposition-52034/read.awp</comments><pubDate>11 May 2015 16:00:00 Z</pubDate><description>Hi Ola&#13;
&#13;
There are several uses for HSavePosition / HRestorePosition as Guenter already exemplified.&#13;
&#13;
If you have a window/fo…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52024-clarification-for-hsaveposition-hrestoreposition-52034/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52024-clarification-for-hsaveposition-hrestoreposition-52034/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52024-clarification-for-hsaveposition-hrestoreposition/read.awp">Clarification for HSavePosition/HRestorePosition?</source><title>Re: Clarification for HSavePosition/HRestorePosition?</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52024-clarification-for-hsaveposition-hrestoreposition-52027/read.awp</comments><pubDate>11 May 2015 11:33:00 Z</pubDate><description>Hi Ola,&#13;
&#13;
in priciple, the file pointer of a file is saved. Which means that you can return to the previously found record with…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52024-clarification-for-hsaveposition-hrestoreposition-52027/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52024-clarification-for-hsaveposition-hrestoreposition-52027/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/52024-clarification-for-hsaveposition-hrestoreposition/read.awp">Clarification for HSavePosition/HRestorePosition?</source><title>Re: Clarification for HSavePosition/HRestorePosition?</title></item></channel></rss>
