<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>22 Jun 2018 10:11:00 Z</lastBuildDate><pubDate>21 Jun 2018 00:00:00 Z</pubDate><description>We have a data file (MyDataFile) with several fields, some of them:&#13;
SCode (Text, String 20)&#13;
NLineNo (Numeric, Integer +-999 999 999 --&gt; 4-byte)&#13;
DStartDate (Date, yyymmdd)&#13;
It also has a composite key:&#13;
IND_Code_LineNo_StartDate (with all 3 fields of above)&#13;
&#13;
Looking at the data in HFSQL Control Center this index seems to be filled correctly. I even reindexed the table to be sure.&#13;
&#13;
Now I'm trying to access data with this index:&#13;
&#13;
nLineNo is int = 30000&#13;
HFilter(MyDataFile,IND_Code_LineNo_StartDate,["S12345",nLineNo,hMinVal], "S12345",nLineNo,hMaxVal])&#13;
I'm not getting any result.&#13;
&#13;
This workaround does work and gets me the desired result:&#13;
HFilter(MyDataFile,IND_Code_LineNo_StartDate,["S12345",hMinVal], "S12345",hMaxVal], "NLineNo="+nLineNo)&#13;
&#13;
I'm now using the workaround, but what is wrong with the first variant?&#13;
&#13;
I even tried using&#13;
minVal is buffer = HBuildKeyValue(MyDataFile,IND_Code_LineNo_StartDate,"S12345",nLineNo,hMinVal)&#13;
maxVal is buffer = HBuildKeyValue(MyDataFile,IND_Code_LineNo_StartDate,"S12345",nLineNo,hMaxVal)&#13;
HFilter(MyDataFile,IND_Code_LineNo_StartDate, minVal, maxVal)&#13;
In the debugwindow I get the following as values:&#13;
minVal: "S12345&lt;0&gt;&lt;0&gt;&lt;0&gt;&lt;0&gt;&lt;0&gt;&lt;0&gt;&lt;0&gt;&lt;0&gt;&lt;0&gt;&lt;0&gt;&lt;0&gt;&lt;0&gt;&lt;0&gt;&lt;0&gt;0u&lt;0&gt;&lt;0&gt;&lt;0&gt;"&#13;
maxVal: "S12345&lt;0&gt;&lt;0&gt;&lt;0&gt;&lt;0&gt;&lt;0&gt;&lt;0&gt;&lt;0&gt;&lt;0&gt;&lt;0&gt;&lt;0&gt;&lt;0&gt;&lt;0&gt;&lt;0&gt;&lt;0&gt;0u&lt;0&gt;&lt;0&gt;ÿ"&#13;
On first glance, I would say this is definitely wrong. there should be 30000 instead of 0u. But why?&#13;
&#13;
So has anyone any ideas, what I'm missing?&#13;
&#13;
Thanks a lot for your answer.</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65932-wd21-weird-integer-composite-key-problem/read.awp</link><title>[WD21] Weird integer in composite key problem</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/65932-wd21-weird-integer-composite-key-problem-65946/read.awp</comments><pubDate>22 Jun 2018 10:11:00 Z</pubDate><description>The hBuildKey seems to be padding the Code item with binary zero's to a length of 20 is that ok?&#13;
edit: I mean is that still the…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65932-wd21-weird-integer-composite-key-problem-65946/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65932-wd21-weird-integer-composite-key-problem-65946/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65932-wd21-weird-integer-composite-key-problem/read.awp">[WD21] Weird integer in composite key problem</source><title>Re: [WD21] Weird integer in composite key problem</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65932-wd21-weird-integer-composite-key-problem-65945/read.awp</comments><pubDate>22 Jun 2018 00:00:00 Z</pubDate><description>Thanks for your answers.&#13;
The missing bracket is a typo. I changed the string as I was not sure about what I may share from my d…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65932-wd21-weird-integer-composite-key-problem-65945/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65932-wd21-weird-integer-composite-key-problem-65945/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65932-wd21-weird-integer-composite-key-problem/read.awp">[WD21] Weird integer in composite key problem</source><title>Re: [WD21] Weird integer in composite key problem</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65932-wd21-weird-integer-composite-key-problem-65939/read.awp</comments><pubDate>21 Jun 2018 12:58:00 Z</pubDate><description>Hi Christine,&#13;
&#13;
that may be as simple as your variable declaration...&#13;
&#13;
You are telling us that in your analysis it's an int o…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65932-wd21-weird-integer-composite-key-problem-65939/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65932-wd21-weird-integer-composite-key-problem-65939/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65932-wd21-weird-integer-composite-key-problem/read.awp">[WD21] Weird integer in composite key problem</source><title>Re: [WD21] Weird integer in composite key problem</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65932-wd21-weird-integer-composite-key-problem-65938/read.awp</comments><pubDate>21 Jun 2018 12:53:00 Z</pubDate><description>Hi Christine,&#13;
&#13;
I don't use hFilter because queries are more convenient, but on first glance I see an opening bracket [ missing…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65932-wd21-weird-integer-composite-key-problem-65938/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65932-wd21-weird-integer-composite-key-problem-65938/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65932-wd21-weird-integer-composite-key-problem/read.awp">[WD21] Weird integer in composite key problem</source><title>Re: [WD21] Weird integer in composite key problem</title></item></channel></rss>
