PxPlus User Forum

Twitter Twitter Twitter

Author Topic: database.pvc  (Read 1117 times)

Peter.Higgins

  • Diamond Member
  • *****
  • Posts: 124
    • View Profile
database.pvc
« on: May 07, 2019, 11:08:35 AM »
Found something this morning.
Using a delimited file structure I get column width=0 for all key fields from the IDXINFO object returned from database.pvc method GetIndexInfo().
In the executed LOAD_INDICES procedure of database.pvc, the properties are loaded by the line
READ DATA FROM X$,SEP=":" TO KN,SN,COLUMNATTR$,COLUMNWIDTH,COLUMNOFFSET
x$ is a lightly modified Keydefinition$ from dde_fh. 
Both have contents of "1:1:AC"

If columnwidth is 0 after this statement then should not a columnwidth = num(length$,err=...) be added so a separate routine to poll COLINFO object to get field length is not required?