create colums at runtime

Discussion of open issues, suggestions and bugs regarding Virtual Data Access Components for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
fcodebue
Posts: 5
Joined: Thu 13 Nov 2008 13:12

create colums at runtime

Post by fcodebue » Fri 21 Nov 2008 18:47

I need to create some columns at tunrtime. what I have to do? some like

vt.columns.clear;
vt.columns.add('col1');
....

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

Post by Plash » Mon 24 Nov 2008 08:26

You can use the following code:

VirtualTable.AddField('COL1', ftString, 30);
...

fcodebue
Posts: 5
Joined: Thu 13 Nov 2008 13:12

Post by fcodebue » Tue 25 Nov 2008 06:40

Plash wrote:You can use the following code:

VirtualTable.AddField('COL1', ftString, 30);
...
thanks a lot plash

Post Reply