Board index » delphi » DbiDoRestructure Example

DbiDoRestructure Example

In the example on Borlands web page there is an example to change a field
with the DbiDoRestructure function.  When the ChangeField procedure is
called it is called with a variable called ChangeRec shown below

type
  ChangeRec = packed record
    szName: DBINAME;
    iType: word;
    iSubType: word;
    iLength: word;
    iPrecision: byte;
end;

I have tried to find in the BDE help a list of values for iType.  Can anyone
point me to a place where I can find this information.

Thank you
Jon Loftin
digit...@worldnet.att.net

 

Re:DbiDoRestructure Example


Jon...from Bde.int

{ Field Types (Logical) }

  fldUNKNOWN         = 0;
  fldZSTRING         = 1;               { Null terminated string }
  fldDATE            = 2;               { Date     (32 bit) }
  fldBLOB            = 3;               { Blob }
  fldBOOL            = 4;               { Boolean  (16 bit) }
  fldINT16           = 5;               { 16 bit signed number }
  fldINT32           = 6;               { 32 bit signed number }
  fldFLOAT           = 7;               { 64 bit floating point }
  fldBCD             = 8;               { BCD }
  fldBYTES           = 9;               { Fixed number of bytes }
  fldTIME            = 10;              { Time        (32 bit) }
  fldTIMESTAMP       = 11;              { Time-stamp  (64 bit) }
  fldUINT16          = 12;              { Unsigned 16 bit integer }
  fldUINT32          = 13;              { Unsigned 32 bit integer }
  fldFLOATIEEE       = 14;              { 80-bit IEEE float }
  fldVARBYTES        = 15;              { Length prefixed var bytes }
  fldLOCKINFO        = 16;              { Look for LOCKINFO typedef }
  fldCURSOR          = 17;              { For Oracle Cursor type }

  MAXLOGFLDTYPES     = 18;              { Number of logical fieldtypes }

Rick Peterson

Quote
Jon Loftin wrote in message <6jctdc$d1...@forums.borland.com>...
>In the example on Borlands web page there is an example to change a field
>with the DbiDoRestructure function.  When the ChangeField procedure is
>called it is called with a variable called ChangeRec shown below

>type
>  ChangeRec = packed record
>    szName: DBINAME;
>    iType: word;
>    iSubType: word;
>    iLength: word;
>    iPrecision: byte;
>end;

>I have tried to find in the BDE help a list of values for iType.  Can
anyone
>point me to a place where I can find this information.

>Thank you
>Jon Loftin
>digit...@worldnet.att.net

Other Threads