dark_mode EN
  • Method WTable :SetHeader
  • Parameters
    aData

    Array with the names of each column

    lRecno

    True if the first of the columns is a unique key for each row in the table

  • Return value

Allows you to set the table header, without including any data.

Sample:

WITH OBJECT ::oTable := WTable():New( SO )
  :cId := "table1"
  IF !oMain:IsCached()
    :LoadDbf( "customer",  {"Id","First","Last","Street", "City"}, .T. )
  ELSE
    :SetHeader( {"Id","First","Last","Street", "City"}, .T. )
  ENDIF

Previous chevron_left Next chevron_right