An error in getFieldCount?

Ruslan Zasukhin sunshine at public.kherson.ua
Mon Aug 29 18:43:25 CDT 2005


On 8/29/05 5:26 PM, "lilu" <lilu at mamt.open.by> wrote:

Hi Illona,

> Hello!
> There's something strange with VBaseObject.getFieldCount method. When
> I add a table with dymanic structure:
> 
>                 VBaseObject _table = _db.makeNewBaseObject("TEST_TABLE");
>                 _table.makeNewField("TEST_1", VJDK.TypeByte);
>                 int _count = _table.getFieldCount();

> Count here equals 1.

Must be zero I think.

> But when I inherit VBaseObject and following the example in the
> VJDK_Reference_1_en.pdf:
>    public class TestTable extends VBaseObject{
>           VByte test_1;
>           public TestTable () throws VException{
>                  super("TEST_TABLE");
>                  test_1 = new VByte("TEST_1");
>           }
>    };
> 
> the count equals 0.
> Is it normal?

Looks strange. 

Note, each Valentina table always have "RecID" field.
May be that 1 -- is some glitch with this field.


-- 
Best regards,

Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc

Valentina - Joining Worlds of Information
http://www.paradigmasoft.com

[I feel the need: the need for speed]




More information about the Valentina mailing list