V4RB2 - Adding to cursor crash
erne
ernestogiannotta at tiscalinet.it
Fri Feb 10 10:32:29 CST 2006
on 10-02-2006 0:14, Ruslan Zasukhin at sunshine at public.kherson.ua wrote:
> On 2/10/06 1:05 AM, "Erne" <ernestogiannotta at tiscalinet.it> wrote:
>
>>>> I've found that if I try to use the 'recid= Cursor.AddRecord' method
>>>> in a cursor that has an Order by clause
>>>> the app will crash
>>>
>>>> e.g.
>>>
>>>> SqlString = "Select Recid, * from " + mPerson.Name
>>>> SqlString = SqlString + " Order by " + mPerson.Field(1).Name
>>>
>>>> c = mDatabase.Sqlselect(SqlString, EVCursorLocation.kServerSide,
>>>> EVLockType.kNoLocks, EVCursorDirection.kRandom)
>>>
>>>> if not (c is nil) then
>>>> dim x as Integer
>>>
>>>> c.SetBlank EVValueAccess.forAdd
>>>> c.Field(1).SetString "0"
>>>> x = c.AddRecord // CRASH!
>>>
>>>
>>>> is this a known limitation or should I file a bug report on Mantis?
>>>
>>> As far as I get it - you could not use EVLockType.kNoLocks for
>>> RW-cursors. Meanwhile it should be no crash...
>>> Report it to the Mantis and send me the project please.
>>>
>>
>> EVLockType.kReadWrite makes no difference
>
> Btw, what version you use Erne ?
latest b9 I think
Unfortunately no version info in the finder info of plugin
(please Ruslan inlude it in next builds)
Cool Runnings,
Erne.
--
| e r | Ernesto Giannotta
| n e | Musical Box - a media store
More information about the Valentina
mailing list