[VNET 1.0] Error wirth VCursor.Add + Update Methods

SoftIl softil at onlinehome.de
Sat Mar 11 23:26:36 CST 2006


Hi Ruslan,
> Good, so you have workaround for VNET 1.x ?
Yes, I have.
I convert the returned array of shortBytes in an array of bytes:

Array _array = null;
VBLOB _blobValue = null;

_blobValue = (_cursor[_index] as VBLOB);
_blobValue.ReadBLOBData(ref _array,_blobValue.Length);

byte[] _valueTemp = new byte[_array.Length];
for(int _index1 = _array.GetLowerBound(0); _index1 <= 
_array.GetUpperBound(0); _index1++)
_valueTemp[_index1] = 
MathRoutines.ConvertToByte((SByte)_array.GetValue(_index1));  //In this 
methode I convert the value from shortByte to byte.

It works fine.

Best regards,
Carsten 




More information about the Valentina mailing list