<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On May 24, 2012, at 5:14 PM, Christian - <a href="http://ChrisKatDev.com">ChrisKatDev.com</a> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Ivan,, Ruslan,<div><span class="Apple-style-span" style="background-color: transparent;"><br></span></div><div><span class="Apple-style-span" style="background-color: transparent;">this is the code for the corrupted field</span><div><span class="Apple-style-span" style="background-color: transparent;">do you see a problem or other ?</span></div><div><span class="Apple-style-span" style="background-color: transparent;">I have two custumers with the problem on same field (one on mac, one on pc)</span></div><div><br></div><div><div> Dim ch As VText</div><div> ch = tTable.CreateTextField ("ContentText", 2048, EVFlag.fNullable + EVFlag.fCompressed)</div><div> ch.CollationAttribute (EVColAttribute.kStrength) = EVColAttributeValue.kTertiary</div></div><div><div> <span class="Apple-tab-span" style="white-space:pre"> </span>tTable.flush</div><div> <span class="Apple-tab-span" style="white-space:pre"> </span>pDB.flush</div></div></div></div></blockquote><div><br></div>tTable.Flush is really redundant since you do db.flush a moment later.</div><div><br><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><div> <span class="Apple-tab-span" style="white-space:pre"> </span>tTable.setBlank</div></div><div><br></div></div></div></blockquote></div><div><br></div>This call is about to "blank" all the fields in the table. That means every field is assigned with either default value (if defined), sql-null value (if nullable field) or zero/empty value. Usually you do something like this one:<div><br></div><div>tbl.SetBlank</div><div><br></div><div>f1.Value = 10</div><div>f2.Value = 'some string'</div><div><div>...</div><div><br></div><div>tbl.AddRecord</div><div><br></div><div><br></div><div>SetBlank without following AddRecord is ridiculous call.</div><div>Can you send all the code?</div><div> <br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div>-- <br>Best regards,<br>Ivan Smahin<br>Senior Software Engineer<br>Paradigma Software, Inc<br>Valentina - The Ultra-Fast Database<br><a href="http://www.valentina-db.com/">http://www.valentina-db.com</a></div></span>
</div>
<br></div></div></body></html>