[VSDK PB] 1.9.8b17

Totte Alm totte at code66.se
Thu Jul 24 20:12:49 CDT 2003


torsdagen den 24 juli 2003 kl 18.41 skrev Ruslan Zasukhin:

> 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.

It was even kNoLock I was supposed to use, as this is NOT server   
based. kReadWrite gave an error.
kNoLock Works like a charm.

// Totte
>
>
>> 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
> -------------------------------------------------------------
>
> _______________________________________________
> Valentina mailing list
> Valentina at lists.macserve.net
> http://lists.macserve.net/mailman/listinfo/valentina
>
>
------------------------------------------------------------------------ 
--------------------------
It's the bean counters on the east coast that use windows.
We creative people on the west coast use macs. / American market  
research guru.



More information about the Valentina mailing list