Page 1 of 1

How to set LargeIntPrecision to 18 for TLargeIntField?

Posted: Wed 04 Aug 2010 17:51
by easyblue
Hello

I have a C++Builder2006 software development case, who uses ODAC.

Now I want a TOraQuery can return a dataset with field in type of Integer, LargeInt or Float.

Since it is a C++ project, how can I set the global constant LargeIntPrecision to 18 according to FAQ?

Posted: Fri 06 Aug 2010 07:46
by bork
Hello

To turn on TLargeIntField support you should set the TOraSession.Options.EnableLargeint option to true. It allows ODAC datasets to create fields with the TLargeIntField data type. By defualt LargeIntPrecision is 18. If you want to change this value you should add the OraClasses.hpp to the INCLUDE section and set the LargeIntPrecision variable to your value. But you should set this variable before your TOraSession is created. You can do it in the project file:

Code: Select all

  LargeIntPrecision = 18;

  Application->Initialize();
  Application->CreateForm(__classid(TForm1), &Form1);
  Application->Run();