universerocket

wIntegrate add text to dbgrid column headers


Well the documentation is non-existent on this one, which would seem a pretty straight forward things to want to do. Am trying to add column header text to row 0 and it simply is not playing ball.

  * Load up the Column
  REC = "Cell 0,1":VM:"Cell 0,2"
  REC<-1> = "Deal#":VM:"Deal"
  CALL WIN.DBSETPRP(DLGNAME, "Grid1","ColText",REC)

The app keeps falling over on dialog box load with an Error 3, which I figure is to do with this block of code. Can;t figure out the syntax.


Solution

  • COLTITLES = "Title A, Tittle B, Title C"
    CALL WIN.DBSETPRPR(DBNAME, GRIDNAME, "ColText", COLTITLES)