[VSDK PB] 1.9.8b17

Ruslan Zasukhin sunshine at public.kherson.ua
Thu Jul 24 19:41:25 CDT 2003


on 7/24/03 16:03, Totte Alm at totte at code66.se wrote:

Hi Totte,

Man!

You have forget update your code to use new parameters of SqlSelect() !!!

IF you want Update() some records of cursor then you need assign kReadWrite.


> Hello Ruslan,
> 
> I'm trying to find out why my App doesnt behave correctly when using
> VSDK 1.9.8b17 and GCC 3.3, but behaves OK under VSDK 1.9.7 and GCC 3.1
> 
> The place where it fails is when I create Two cursors, that points the
> the same data, and steps those cursors to compare records with each
> other, to qualify which recods can be  put into a merge record.
> What bothers me is that is this:
> 
> Pieces of code:
> // Do the two selects
> mc1 = db->SqlSelect("SELECT recid, HID, Name, bundlename, NameChanged,
> IsGoverner, totalshares, "
> "bundleid, isbundled, isinsider, totalvotes FROM HolderTable WHERE
> bundlename = '' ORDER BY Name ASC, HID ASC , totalshares DESC" );
> mc2 = db->SqlSelect("SELECT recid, HID, Name, bundlename, NameChanged,
> IsGoverner, totalshares, "
> "bundleid, isbundled, isinsider, totalvotes FROM HolderTable WHERE
> bundlename = '' ORDER BY Name ASC, HID ASC , totalshares DESC" ):
> 
> This code doesnt seem to work under 1.9.8 GCC 3.3:
> // Position the second
> *(mc2->GetULongField(8))=mTaskData->bundleCounter;
> *(mc2->GetShortField(9))=1;
> LOG(TRCB_STD0, "Bundle set with Group=%ld", mTaskData->bundleCounter);
> mc2->Update();
> 
> The Cursors record  isnt Updated, so it seems like a problem either
> with 1.9.8b17 VSDK PB, or with the GCC 3.3 Build if it.

-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------



More information about the Valentina mailing list