An error in getFieldCount?

lilu lilu at mamt.open.by
Mon Aug 29 17:26:21 CDT 2005


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.
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?
Sincerely, Ilona Karpova.



More information about the Valentina mailing list