I wanted to create individual indexes for 7 files
before I used < FW_Cdxcreate() >
everything works fine without problems
next I started to define extra indexes
The solution returns < corrupt index >after restart
I saw that it is possible to define parameter in FW_Cdxcreate()
Never before I had any problems creating indexfiles.
strange
viewtopic.php?f=3&t=9931&p=48111&hilit=cdx+error+1012#p48111
With my external DBF-viewer I can open the file without problems
and the indexfiles are created.
NO problems using FW_Cdxcreate()
- Code: Select all Expand view RUN
DBSELECTAREA(cFileName) // filenames from sample1 to 7
FW_CdxCreate()
ORDCREATE( ,"TOPICNO", "DESCEND( STR( TOPICNO ) )", ;
{|| DESCEND(STR( TOPICNO ) ) } , .F. )
ORDCREATE( ,"FORUM","STR( FORUM )", ;
{|| STR( FORUM ) } , .F. )
ORDCREATE( ,"DELETE","STR( T_DELETE )", ;
{|| STR( T_DELETE ) } , .F. )
ORDCREATE( ,"DATE","DTOS( DATE )", ;
{|| DTOS( DATE ) } , .F. )
ORDCREATE( ,"AUTHOR","AUTHOR + INFO1 + INFO2", ;
{|| AUTHOR + INFO1 + INFO2 } , .F. )
ORDCREATE( ,"LIKE", "STR( LIKE ) + AUTHOR + INFO1 + INFO2 ) ", ;
{|| STR( LIKE ) + AUTHOR + INFO1 + INFO2 } , .F. )
ORDCREATE( ,"INFO1","INFO1", ;
{|| INFO1 } , .F. )
ORDCREATE( ,"INFO2","INFO2", ;
{|| INFO2 } , .F. )
There is nothing special opening a dbf with my NETTOOLS
The errorline
-> 37 USE &cFileName ALIAS &cAlias NEW SHARED
- Code: Select all Expand view RUN
FUNCTION NET_USE ( cFileName, cAlias, nTrials, nTime, lNet )
LOCAL lReturn := .T.
LOCAL lOpen := .F.
nTrcount := nTrials
YesNo := .F.
// SHARED all Users
// EXCLUSIVE 1 User
IF FILE( cFileName )
nTrials := nTrcount
DO WHILE !lOpen
DO WHILE .T.
IF !lNet
USE &cFileName ALIAS &cAlias NEW EXCLUSIVE
ELSE
USE &cFileName ALIAS &cAlias NEW SHARED
ENDIF
,,,
,,,
Any idea