
Opening Files using Char Expressions.
In Clipper 5.2e I'm experiencing difficulties when
opening an indexed file using a character expression in
parantheses. I'm using the DBFCDX driver.
e.g. extract ...
local cLpath := "C:\TEST\"
local cFile := "I1"
local cAlias := cFile
local cDataf := cLpath + cFile
local cIndxf := cDataf
local lret_value := FALSE
request dbfcdx
rddsetdefault ( "DBFCDX" )
.
.
lret_value := NetUse ( cDataf, EXCLUSIVE, 5, cAlias)
index on (cFile)->clientid tag "GENERAL" to (cDataf)
set index to (CIndxf)
The first trip through the sequence produces no errors.
Doing it a second time (without the 'index on' line)
produces:
DBFCDX\610 'Bad Index Expression!: C:\TEST\I1.DBF"
at the point in NetUse() that simply opens the file. i.e:
use ( cDataf ) exclusive alias (cAlias) new
Can someone straighten me out?
Alan Secker