home *** CD-ROM | disk | FTP | other *** search
- <<* MSAFILE.INC *>>
- <<#
-
- procedure GenFileVars
- begin
- filespec( dbfnam,fpath,fname,fext )
- #>>
- DBFname = {"}{fname}.DBF{"}
- <<fname := substr( fname,1,7 )>>
- DBFtemp = {"}{fname}$.DBF{"}
- <<#
- end <<*GenFileVars*>>
-
-
- function GetIndexExt : string
- begin
- RETURN 'IDX'
- end <<*GetIndexExt*>>
-
-
- procedure GenIndexVars
- begin
- forall indexes
- filespec( ndxnam,fpath,fname,fext )
- fext := GetIndexExt
- #>>
- NDXnam{ndxcount} = {"}{fname}.{fext}{"}
- NDXkey{ndxcount} = {"}{ndxkey}{"}
- <<#
- endfor
- end <<*GenIndexVars*>>
-
-
- function GetIndexList( indexchoice : integer ) : string
- string ndxnames
- begin
- <<*--Start with selected index--*>>
- ndxnames := '&NDXnam' + str( indexchoice )
- forall indexes
- if ndxcount <> indexchoice
- ndxnames := ndxnames + ',&NDXnam' + str( ndxcount )
- endif
- endfor
- RETURN ndxnames
- end <<*GetIndexList*>>
-
-
- function GetIndexNames( indexchoice : integer ) : string
- string ndxnames
- begin
- <<*--Start with selected index--*>>
- select index indexchoice
- filespec( ndxnam,fpath,fname,fext )
- ndxnames := fname + '.' + GetIndexExt
- forall indexes
- if ndxcount <> indexchoice
- filespec( ndxnam,fpath,fname,fext )
- ndxnames := ndxnames + ',' + fname + '.' + GetIndexExt
- endif
- endfor
- RETURN ndxnames
- end GetIndexNames
-
- <<* EOF: MSAFILE.INC *>>
- #>>