![]() | ![]() Products ![]() ![]() ![]() ![]() |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 1 to 4 of 4 total |
![]() |
Wed, Oct 1 2014 7:46 AM | Permanent Link |
Chris Holland SEC Solutions Ltd. ![]() | I have the following code in my project:
with EstimateHeaderTable do begin First(); while (not EOF) do begin LogOutput('Recno : ' + IntToStr(Columns['Recno'].AsInteger)); Next(); end; end; EstimateHeaderTable.Columns['Recno'].SortDirection := sdAscending; EstimateHeaderTable.SortCaseInsensitive := true; EstimateHeaderTable.Sort; EstimateHeaderTable.InitFind; EstimateHeaderTable.Columns['Recno'].AsInteger := 19; if EstimateHeaderTable.Find(true,true) then EstimateNameEdit.Text := EstimateHeaderTable.Columns['Name'].AsString else EstimateNameEdit.Text := 'Not Found'; The LogOutput produces two numbers as expected: 19 21 So why does the Find not see the Row with Recno = 19? Chris Holland |
Wed, Oct 1 2014 8:26 AM | Permanent Link |
Walter Matte Tactical Business Corporation | Chris:
Did you try: if EstimateHeaderTable.Find(false,true) then ..... Walter |
Wed, Oct 1 2014 8:54 AM | Permanent Link |
Chris Holland SEC Solutions Ltd. ![]() | Yes, tried both options.
On 01/10/2014 13:26, Walter Matte wrote: > Chris: > > Did you try: > > if EstimateHeaderTable.Find(false,true) then > .... > > > Walter > |
Wed, Oct 1 2014 8:59 AM | Permanent Link |
Chris Holland SEC Solutions Ltd. ![]() | It appears to work if I use:
if EstimateHeaderTable.Find(false,false) then So the CaseInsensitive option appears to stop the Integer search from working! Chris Holland. On 01/10/2014 13:54, Chris Holland wrote: > Yes, tried both options. > > On 01/10/2014 13:26, Walter Matte wrote: >> Chris: >> >> Did you try: >> >> if EstimateHeaderTable.Find(false,true) then >> .... >> >> >> Walter >> |
This web page was last updated on Saturday, June 3, 2023 at 10:17 AM | Privacy Policy![]() © 2023 Elevate Software, Inc. All Rights Reserved Questions or comments ? ![]() |