<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>5 Oct 2015 13:01:00 Z</lastBuildDate><pubDate>29 Sep 2015 19:16:00 Z</pubDate><description>Hello,&#13;
I am trying to move the interface between tables and application to class methods. The data are held in an object and then moved to a table with Create or Update methods.&#13;
It's all about the Update method. To be able to use HModify() I had to get a position in a table (or a file, if you prefere). I thought that HReadSekFirst would do the trick. Actually it does but only half-way. The method looks like this:&#13;
PROCEDURE Update() {:ProperTabelName_STR,indFile}..Connection = gDict_cnConnection HReadSeekFirst( :ProperTabelName_STR, SpedKsw_CR, :SpedKsw_CR ) MemoryToFile( object, :ProperTabelName_STR ) IF NOT HModify( :ProperTabelName_STR ) THEN Error( "CL_Forwarder::Update(): HModify( spedytorzy )", HErrorInfo() ) RETURN END where:&#13;
:ProperTableName_STR is a string attribute that holds the name of the table in this case it is "spedytorzy"&#13;
:SpedKsw_CR is a string attribute that holds the value of the SpedKsw_CR column in spedytorzy table. spedytorzy.SpedKsw_CR is a primary key and there is an index on this column.&#13;
gDict_cnConnection is a connection to my MySQL database.&#13;
&#13;
Now when I run this method I get an error:&#13;
Error at line 17 of Method Update process. HReadSeekFirst function called. No item found in file. Technical Information Project : wdWS50_DictSQL Dump error of module &lt;14.00Icb&gt;. - WL Call: Processing , line &lt;17&gt;, thread &lt;0&gt; Function , syntax # &lt;0&gt; - Level: fatal error (EL_FATAL) - Error Code: 70202 - WD55 Error Code: 202 - No system error code - No system error message - What happened? No item found in file. - Debug Information: IEWDHF=27001 Module= Version=&lt;14.00Icb&gt; Fonction (7,12) - Attached Information: EIT_LOGICALTABLENAME : EIT_PILEWL : Method Update (CL_Spedytor.Update), line 17 Click BTN_SaveAndExit (WIN_AddOrModifyForwarder.BTN_SaveAndExit), line 3 Click Modify (WIN_CarriersDict.Modify), line 7 EIT_COMPOSANT : EIT_DATEHEURE : 29/09/2015 19:00:21 - Identifier in .err: 71036 Help - Check that the Item is properly described in the file. Very well. But if I change the table name in HReadSeekFirst() from :ProperTabelName_STR to spedytorzy, the method behaves and pls note that MemoryToFile() and HModify() don't mind the :ProperTabelName_STR.&#13;
&#13;
I am not noticing something pretty obvious but it's the second day I am playing with the problem and I'll probably use HExecuteSQLQuery() and rewrite the method.&#13;
But if you see what my blind eye is missing, pls write.&#13;
All the best</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54230-wd14-hreadseekfirst-class-method/read.awp</link><title>[WD14] HReadSeekFirst() in a class method</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/54230-wd14-hreadseekfirst-class-method-solved-54306/read.awp</comments><pubDate>5 Oct 2015 13:01:00 Z</pubDate><description>Hi Piet,&#13;
&#13;
As this is reusable generic code that serves on any db table there is no other way.&#13;
If you look at my code you see …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54230-wd14-hreadseekfirst-class-method-solved-54306/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54230-wd14-hreadseekfirst-class-method-solved-54306/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54230-wd14-hreadseekfirst-class-method/read.awp">[WD14] HReadSeekFirst() in a class method</source><title>Re: [WD14] HReadSeekFirst() in a class method - SOLVED (?)</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54230-wd14-hreadseekfirst-class-method-solved-54304/read.awp</comments><pubDate>5 Oct 2015 10:45:00 Z</pubDate><description>Hi,&#13;
&#13;
Both Peter and Jacek are using the same variable name for the key name and the search value.&#13;
I find this very confusing,…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54230-wd14-hreadseekfirst-class-method-solved-54304/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54230-wd14-hreadseekfirst-class-method-solved-54304/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54230-wd14-hreadseekfirst-class-method/read.awp">[WD14] HReadSeekFirst() in a class method</source><title>Re: [WD14] HReadSeekFirst() in a class method - SOLVED (?)</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54230-wd14-hreadseekfirst-class-method-solved-54292/read.awp</comments><pubDate>4 Oct 2015 19:33:00 Z</pubDate><description>OK. I have made it work.&#13;
&#13;
HReadSeekFirst( :ProperTabelName_STR, "SpedKsw_CR", :SpedKsw_CR )&#13;
This are the only parameters form…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54230-wd14-hreadseekfirst-class-method-solved-54292/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54230-wd14-hreadseekfirst-class-method-solved-54292/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54230-wd14-hreadseekfirst-class-method/read.awp">[WD14] HReadSeekFirst() in a class method</source><title>Re: [WD14] HReadSeekFirst() in a class method - SOLVED (?)</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54230-wd14-hreadseekfirst-class-method-54285/read.awp</comments><pubDate>3 Oct 2015 17:02:00 Z</pubDate><description>Peter, thanks a lot.&#13;
&#13;
Unfortunately this indirection hasn't worked for me. This time I got an error:&#13;
'500001' element unknown…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54230-wd14-hreadseekfirst-class-method-54285/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54230-wd14-hreadseekfirst-class-method-54285/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54230-wd14-hreadseekfirst-class-method/read.awp">[WD14] HReadSeekFirst() in a class method</source><title>Re: [WD14] HReadSeekFirst() in a class method</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54230-wd14-hreadseekfirst-class-method-54242/read.awp</comments><pubDate>30 Sep 2015 09:21:00 Z</pubDate><description>Hi Jacek,&#13;
&#13;
This is how it looks in my save method (which will determine if it will call the Add or Update method.:&#13;
// Create …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54230-wd14-hreadseekfirst-class-method-54242/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54230-wd14-hreadseekfirst-class-method-54242/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/54230-wd14-hreadseekfirst-class-method/read.awp">[WD14] HReadSeekFirst() in a class method</source><title>Re: [WD14] HReadSeekFirst() in a class method</title></item></channel></rss>
