Can't get the Size property of TField I input manually

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
HDumas
Posts: 18
Joined: Fri 23 Sep 2005 12:56
Location: Quebec, Canada

Can't get the Size property of TField I input manually

Post by HDumas » Mon 15 May 2006 17:51

Hi,
Using Delphi7 and ODAC 5.50. I have a TOraQuery. In this query there are pseudo-column created either with a DECODE or other function. These columns automatically are created with a size of 4000. In the component, I add all fields and in the size property of the TStringField, I change the number for 15. But in my program, when I want to get the size by doing a OraQuery.FieldbyName('Whatever').Size, it still indicates 4000. I have tried OraQuery.Fields.Size... still shows 4000.

Why isn't showing the number I put in the TField.Size property?

H.Dumas

Challenger
Devart Team
Posts: 925
Joined: Thu 17 Nov 2005 10:53

Post by Challenger » Tue 16 May 2006 08:47

When you open TOraQuery component Size property of its TFields objects is reset to original value. So you can't modify this property.

Post Reply