Load data no Field Names Bug?

Discussion of open issues, suggestions and bugs regarding Virtual Data Access Components for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
m227
Posts: 59
Joined: Mon 06 Aug 2007 12:41

Load data no Field Names Bug?

Post by m227 » Fri 05 Feb 2010 21:10

Hello once again.

1. I put a TVirtualTable onto DataModule,
2. open VirtualTable Editor ... (with double click on VT)
3. load data from *.vtd file saved from another app (which was created by assigning TMyTable dataset).
4. close VirtualTable Editor with Save button (to store loaded data)
5. Then if I open Fields Editor (form VT context menu) I see all fields but ... no names in Object Inspector!

Top row of Object Inspector shows i.e.:

Code: Select all

 TStringField
Such DataSet cannot be used in runtime preventing application from run with error i.e.: Class TLargeInt not found...

I inspected such Erroneus VT with "View as Text" and it looks like below:

Code: Select all

...
    object TLargeintField
      FieldName = 'id'
    end
    object TStringField
      FieldName = 'kod'
      Size = 32
    end
    object TStringField
      FieldName = 'grupa'
      Size = 64
    end
...
It clearly shows that no names are assigned. VT v 6.80.0.51.

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Mon 08 Feb 2010 10:30

This is a known problem. You should recreate fields in Fields Editor after loading data.

Post Reply