temporary ram tables

jda jda at his.com
Tue Jul 20 12:00:31 CDT 2010


>Hello jda,
>
>Tuesday, July 20, 2010, 7:37:30 PM, you wrote:
>
>
>>  I'm trying to fill a RAM table with about 10 records. I'm populating
>>  the records the SQL way, e.g.
>
>>     tempDB = new MyDatabase(EVStorageType.kRAM)
>
>>      myCursor = new VCursor(tempDB, "select * from table1 where false",
>>  EVCursorLocation.kServerSide, EVLockType.kReadWrite) //make an empty
>>  cursor
>
>You got a RW cursor with no records.
>
>>       myCursor.SetBlank
>
>>       myCursor.Field("id").SetString("5")
>>        ...
>
>>  i get an exception when I try  this, though:
>
>>        myCursor.updateRecord
>
>Why updaterecord? why not AddRecord?
>There is no record in cursor yet - which one you are goinf to update?
>
>>  Why? How can I create multiple records in a RAM table?
>
>Adding them - nothing special.
>

Hi Ivan,

Yes, of course you're right. But I'm getting an exception on

     call myCursor.AddRecord


too. The exception is

     365829

Do you know what that means?

Jon


More information about the Valentina mailing list