Please help or some sugestions.
In this sample AUTOSORT dont work
- Code: Select all Expand view
- #include "FiveWin.Ch"
#include "ord.ch"
#include "xbrowse.ch"
//----------------------------------------------------------------------------//
REQUEST DBFCDX
//----------------------------------------------------------------------------//
function MyBrowse()
local oDlg, oBrw, cAlias
RddSetDefault("DBFCDX")
USE TESTDBF NEW SHARED
SET ORDER TO TAG FIRST
GO TOP
DEFINE DIALOG oDlg SIZE 900,500
cAlias := Alias()
@ 32.5, 0 XBROWSE oBrw ;
OF oDlg SIZE 400,200 PIXEL ;
ALIAS cAlias ;
AUTOCOLS AUTOSORT FOOTERS LINES CELL ;
BACKGROUND 'STONE'
oBrw:CreateFromCode()
ACTIVATE DIALOG oDlg CENTERED
(cAlias)->( dbCloseArea() )
return nil
If i use dbf file CUSTOMER in \fwh\samples folder going good
What that mean ?
Need i to create index file before defining XBROWSE ? And if yes how to create index file ?
BTW i really dont know the dbf file name becouse it is created from SQL select using TODBC and TDBODBCD classes
and i dont know the fieldnames.
Best Regards and again i please for fast sugestion.