Board index » delphi » New sorting an existing PARADOX table?
Caroll Ferkl
![]() Delphi Developer |
Sun, 18 Apr 2004 12:41:10 GMT
|
Caroll Ferkl
![]() Delphi Developer |
Sun, 18 Apr 2004 12:41:10 GMT
New sorting an existing PARADOX table?
Hello Bits&Bytes,
well, I know to re-indexing (=new sorting) an exesting But PARADOX is paradox. I think the primaryindex is the sortkey (or isn't Let the mouses life! |
Caroll Ferk
![]() Delphi Developer |
Sun, 18 Apr 2004 14:04:42 GMT
Re:New sorting an existing PARADOX table?The song came from Jim Morrison: Alabama Song "Show me the way to the next whisky bar, oh don't ask me why: I tell you we Keep the glasses full! "Caroll Ferkl" <Caroll.Fe...@ntv.de> schrieb im Newsbeitrag Quote> Hello Bits&Bytes, |
Team
![]() Delphi Developer |
Mon, 19 Apr 2004 00:41:21 GMT
Re:New sorting an existing PARADOX table?Are you saying that you want to view the Paradox table in different orders? If so, just create an index for each order then at runtime use Table1.IndexName := 'TheIndexName'; to set the active index. -- |
Caroll Ferk
![]() Delphi Developer |
Mon, 19 Apr 2004 04:32:42 GMT
Re:New sorting an existing PARADOX table?This only works with DBASE NOT with PARADOX!!!! procedure TDbFrm.DbGridTitleClick(Column: TColumn); begin //Hat die (Paradox-)Tabelle einen Prim?rundex? //Ist Index? vorhanden? Regards! "Bill Todd (TeamB)" <bill.nos...@dbginc.com> schrieb im Newsbeitrag Quote> Are you saying that you want to view the Paradox table in different |
Donald S. Bosse
![]() Delphi Developer |
Mon, 19 Apr 2004 06:51:04 GMT
Re:New sorting an existing PARADOX table?You need to create a Secondary Index Field I dont know how to create them in a program but I have Created them in paradox under restructure secondary Indexs note they can be unstable in a high use table that is constantly being updated. once they are created they can be used like Bill says. QuoteCaroll Ferkl wrote: |
Caroll Ferk
![]() Delphi Developer |
Mon, 19 Apr 2004 07:46:37 GMT
Re:New sorting an existing PARADOX table?Hello Donald, in the code you can see that I create new secondaryindex with Quote> > MainFrm.MainTable.AddIndex('',Column.FieldName,[]); build a primary-index, like in the codeexample). But Thanks for your effort! "Donald S. Bossen" <sbos...@jbimporters.com> schrieb im Newsbeitrag Quote> You need to create a Secondary Index Field I dont know how to create them |
Team
![]() Delphi Developer |
Mon, 19 Apr 2004 11:40:07 GMT
Re:New sorting an existing PARADOX table?The phrase "does not work" is not very informative. It would help to know specifically what does not work. I will assume that the AddIndex call is in fact creating the primary index. Quote>> if IndexListe.IndexOf(Column.FieldName) > -1 then created the primary index. It does _not_ contain the name of the index (which is always null for the primary index on a Paradox table) so calling IndexOf will not find the name of the index you just created. Hope this helps. -- |
Caroll Ferk
![]() Delphi Developer |
Mon, 19 Apr 2004 17:52:34 GMT
Re:New sorting an existing PARADOX table?Hello Bill, Well, the basic problem is, I have tables without index (DBASE / PARADOX ) But in Paradox I need the primary index to build the secondary index (Error: The next click (on other title) should build and set a secondary index. But Bill, please can you explain me how I can create/set primary and secondary Regards "Bill Todd (TeamB)" <bill.nos...@dbginc.com> schrieb im Newsbeitrag Quote> The phrase "does not work" is not very informative. It would help to know |
Team
![]() Delphi Developer |
Mon, 19 Apr 2004 22:39:15 GMT
Re:New sorting an existing PARADOX table?One of the restrictions of Paradox tables is that the primary key must consist of the first N fields in the table. If you have a table whose structure is EmployeeId You cannot make SocialSecurityNumber the primary key. The only single field -- |
Caroll Ferk
![]() Delphi Developer |
Tue, 20 Apr 2004 01:22:07 GMT
Re:New sorting an existing PARADOX table?Thanks Bill, I'll try it with annother table structure and given primary key. Regards "Bill Todd (TeamB)" <bill.nos...@dbginc.com> schrieb im Newsbeitrag Quote> One of the restrictions of Paradox tables is that the primary key must |
vt
![]() Delphi Developer |
Sun, 25 Apr 2004 19:04:46 GMT
Re:New sorting an existing PARADOX table?I found that IndexDefs.Add / AddIndex may still refuse to create a secondary index but that a TQuery with an SQL statement like: CREATE ... INDEX ... ON ... will do it. Hope this helps. Vianney |
1. Add a new Database field to a already-existing Paradox table at RUNTIME
2. Insert new field into existing Paradox table
3. Adding a new key to an existing paradox table
4. Paradox table - Increase field size for existing table
5. PARADOX TABLE SORTING vs TABLE EDIT CONFLICT
6. Creating new fields in an existing Paradox 7 DB
7. Add a new Field in an existing Paradox-Database
8. adding a new field to existing table