Encodings on RB 5
Cindy
alvin at ins.co.nz
Fri Sep 12 17:50:09 CDT 2003
Hi Ruslan,
I wrote another email. I have got the changetype function to work through
RB. When I go back to VAPP and look at the database to see how the change
went, I can look at the field list and see that the field has changed
correctly from vString to vFixedBinary. Then I go to look at the Records of
the database and the screen comes up with a blank window and then quits out.
I tried throwing away the indexes and reindexing but still it quits as soon
as I go to the changed database which was working fine before. I don't want
to go changing all my id fields to fixed binary and find that my clients
databases become corrupt. Is there a problem with changing from vstring to
vfixed binary?
Cindy
> on 9/12/03 1:01 AM, Cindy at alvin at ins.co.nz wrote:
>
>> Thanks Ruslan and François. This looks like it should fix the problem but I
>> am having trouble with the syntax which I need to enter at runtime. I am
>> using:
>>
>> dim fld As vField
>> dim newfld As vFixedBinary
>> dim bo As vBaseObject
>> bo = mDatabase.baseObject("Students")
>> fld = bo.field("cid")
>> newfld = bo.changeType(fld,kv_TypeFixedBinary,11)
>>
>> I have also tried:
>>
>> newfld =
>> mDatabase.baseObject("Students").changeType("cid",kv_TypeFixedBinary,11)
>>
>> But both these options come up with parameters are incompatible. I'm not
>> sure where I am going wrong as these look like the right parameters
>> according to the manual and the auto fill in allows these options.
>
> Cindy. I have not understand problem.
>
> You type this
>
> newfld = bo.changeType(fld,kv_TypeFixedBinary,11)
>
> And what happens?
>
>
> ------
> PS: I assume you try to change schema of db, to prepare new version.
> so you will need update also SchemaVersion, correct?
>
More information about the Valentina
mailing list