[VNET] problem after I changed fieldtype

Ruslan Zasukhin sunshine at public.kherson.ua
Mon Nov 24 11:00:54 CST 2003


on 11/23/03 10:28 AM, SoftIl at softil at onlinehome.de wrote:

Hi Carsten,


> I've got an baseobject which contains an field (named "key") of type
> "kUShort" and values from 0 to 10.

> Now I change the type to kShort with VS (current Version), no problems.

So db files know this field as SHORT.

> And then, if I read the data in my project from this baseobject, I get an
> exception because the cursor object has no instance if I'd like to read my
> field "key".

C#.

You open that db files (no classes in C#.)

You just ask SqlExecute() and get no cursor ???


> With all other fields there are no problems.


> If I rechanged the field type to kUShort, it works fine.

> If I read the data in VS or with visql, I get no errors with field type
> kShort.

> Where is the mistake?

It looks like in YOUR C# code still present access to this field as USHORT.

Check this. I do not see other reasons.

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