Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

AutoOpen index file ??
Hi,
using Clipper 5.2.e since 1995. The file DODLIST.DBF is opened with INDEX
DODLIST.CDX, which contains 3 orders. Somwhere in application I want to
build a temporary index with FOR expression with the same 3 orders, to show
only the part of records. Here is the code, DODLIST is the current workarea:

cTmpNtx1 := "Temp111.CDX"
DBCLEARINDEX()   && close the zoznamdl.cdx -> works O.K., no opened
index file

INDEX ON (dodavatel+cislofakt) TAG CisloFak TO (cTmpNtx1) FOR;
RIGHT(DTOC(DatumDod),7) == cObd

DBCLEARINDEX()
INDEX ON DTOS(datumdod) TAG Datum TO (cTmpNtx1) FOR;
RIGHT(DTOC(DatumDod),7) == cObd

DBCLEARINDEX()
INDEX ON Doklad TAG Doklad TO (cTmpNtx1) FOR;
RIGHT(DTOC(DatumDod),7) == cObd

CLOSE INDEXES

SET INDEX TO (cTmpNtx1)

All works fine: after CLOSE INDEXES the debugger shows: the workarea is not
indexed -> O.K.
but
after SET INDEX TO (cTmpNtx1) the debugger shows the workarea has 2 opened
index files DODLIST and TMP111 and 6 active orders !!!!
I have 2 questions:

1. Why is opened the DODLIST.CDX ?? It seems, like the Autoopen feature of
CDX driver in Visual Objects, but I did not read about it in documentation.

2. How can I close only one order bag, in this case DODLIST? The NG says
about the next order managment functions:
- OrdlistClear() - closes ALL the indexes
- OrdDestroy() - removes the specified order from the order bag

Gejza Horvath




Report this thread to moderator Post Follow-up to this message
Old Post
Gejza Horvath
03-27-04 03:59 AM


Re: AutoOpen index file ??
Gejza

> DBCLEARINDEX()   && close the zoznamdl.cdx -> works O.K., no opened index file[/co
lor]
To my knowledge that doesn't work for the 'DBFCDX' implemented by Successwar
e which the 'DBFCDX' RDD
driver in 5.2 is based on (SIX2) (not sure about COMIX as I haven't tried to
 do it).
ie - You cannot close the structural index and keep the DBF open.

--
HTH
Steve Quinn



Report this thread to moderator Post Follow-up to this message
Old Post
Stephen Quinn
03-27-04 03:59 AM


Re: AutoOpen index file ??
"Stephen Quinn" <steveqNOSPAM@integritynet.com.au> wrote in message
news:c3o1tv$29l1b0$1@ID-88745.news.uni-berlin.de...
> Gejza
> 
> To my knowledge that doesn't work for the 'DBFCDX'
> implemented by Successware which the 'DBFCDX' RDD
> driver in 5.2 is based on (SIX2) (not sure about COMIX
> as I haven't tried to do it).
> ie - You cannot close the structural index and keep the
> DBF open.

That is correct in regards to 5.2+Comix.  The only way to close a structural
index is to close the dbf, turn off autoopen (cmxAutoOpen(.F.)) and reopen
the dbf.

--
Ray Marron


Report this thread to moderator Post Follow-up to this message
Old Post
Ray Marron
03-27-04 03:59 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Clipper archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 12:03 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.