Indexkey-Länge für FOXCDX
Moderator: Moderatoren
- Wolfgang Ciriack
- Der Entwickler von "Deep Thought"
- Beiträge: 2945
- Registriert: Sa, 24. Sep 2005 9:37
- Wohnort: Berlin
- Hat sich bedankt: 13 Mal
- Danksagung erhalten: 34 Mal
- Kontaktdaten:
Indexkey-Länge für FOXCDX
Hallo,
könnte mir mal jemand sagen, wie die max. Indexkey-Länge unter Version 1.9 für FOXCDX ist ?
könnte mir mal jemand sagen, wie die max. Indexkey-Länge unter Version 1.9 für FOXCDX ist ?
Viele Grüße
Wolfgang
Wolfgang
- nightcrawler
- 1000 working lines a day
- Beiträge: 655
- Registriert: Di, 24. Apr 2012 16:33
- Wohnort: 72184 Weitingen
- Hat sich bedankt: 3 Mal
- Danksagung erhalten: 96 Mal
- Kontaktdaten:
Re: Indexkey-Länge für FOXCDX
müsste 240 Bytes sein
edit: von hier: https://devzone.advantagedatabase.com/d ... index.html
Advantage Concepts > Advantage File Formats > Xbase File Format Specifications
edit: von hier: https://devzone.advantagedatabase.com/d ... index.html
Advantage Concepts > Advantage File Formats > Xbase File Format Specifications
- Wolfgang Ciriack
- Der Entwickler von "Deep Thought"
- Beiträge: 2945
- Registriert: Sa, 24. Sep 2005 9:37
- Wohnort: Berlin
- Hat sich bedankt: 13 Mal
- Danksagung erhalten: 34 Mal
- Kontaktdaten:
Re: Indexkey-Länge für FOXCDX
Ja, hätte ich auch gedacht.
Mit Benutzung des ADS kann ich den Indexschlüssel auch länger machen, ohne knallt es bei der Erzeugung des Indexes schon bei über ca. 120 Zch.
Mit Benutzung des ADS kann ich den Indexschlüssel auch länger machen, ohne knallt es bei der Erzeugung des Indexes schon bei über ca. 120 Zch.
Viele Grüße
Wolfgang
Wolfgang
- HaPe
- 1000 working lines a day
- Beiträge: 996
- Registriert: So, 15. Nov 2015 17:44
- Wohnort: 71665 Vaihingen-Enz
- Hat sich bedankt: 17 Mal
- Danksagung erhalten: 15 Mal
Re: Indexkey-Länge für FOXCDX
Hallo Wolfgang !
With some collating sequences, or when using double-byte character set (DBCS) characters, each character in the index expression uses two characters in the index key. In these cases, the length of the index expression is limited to 50 or 120 characters, respectively.
Aus der VFP9-Hilfe zum INDEX-Befehl:... ohne knallt es bei der Erzeugung des Indexes schon bei über ca. 120 Zch.
With some collating sequences, or when using double-byte character set (DBCS) characters, each character in the index expression uses two characters in the index key. In these cases, the length of the index expression is limited to 50 or 120 characters, respectively.
--
Hans-Peter
Hans-Peter
- brandelh
- Foren-Moderator
- Beiträge: 15706
- Registriert: Mo, 23. Jan 2006 20:54
- Wohnort: Germersheim
- Hat sich bedankt: 70 Mal
- Danksagung erhalten: 34 Mal
- Kontaktdaten:
Re: Indexkey-Länge für FOXCDX
Laut der Xbase++ Hilfe:
CDXDBE (ORDER Komponente)
Max. length for both
INDEX plus FOR expression 512 characters
Gruß
Hubert
Hubert
- Wolfgang Ciriack
- Der Entwickler von "Deep Thought"
- Beiträge: 2945
- Registriert: Sa, 24. Sep 2005 9:37
- Wohnort: Berlin
- Hat sich bedankt: 13 Mal
- Danksagung erhalten: 34 Mal
- Kontaktdaten:
Re: Indexkey-Länge für FOXCDX
Hallo HaPe,
ja, das deckt sich mit meinen Erfahrungen, das bei ca. 120 Zch. die Fehlermeldung kommt.
Warum das aber bei meiner Konfiguration zutrifft, weiß ich nicht.
Hallo Hubert,
das habe ich auch gelesen, leider scheint es nicht zu stimmen.
ja, das deckt sich mit meinen Erfahrungen, das bei ca. 120 Zch. die Fehlermeldung kommt.
Warum das aber bei meiner Konfiguration zutrifft, weiß ich nicht.
Code: Alles auswählen
DbeSetDefault("FOXCDX")
IF DbeBuild( "FOXCDX", "FOXDBE", "CDXDBE" )
DbeInfo(COMPONENT_DATA,FOXDBE_LOCKRETRY,1000000)
DbeInfo(COMPONENT_DATA,FOXDBE_LOCKDELAY,10)
DbeInfo(COMPONENT_DATA, FOXDBE_LIFETIME, 0)
DbeInfo(COMPONENT_ORDER,CDXDBE_LOCKRETRY,1000000)
DbeInfo(COMPONENT_ORDER,CDXDBE_LOCKDELAY,10)
DbeInfo(COMPONENT_ORDER, FOXDBE_LOCKMODE, LOCKING_EXTENDED)
ENDIF
das habe ich auch gelesen, leider scheint es nicht zu stimmen.
Viele Grüße
Wolfgang
Wolfgang
- nightcrawler
- 1000 working lines a day
- Beiträge: 655
- Registriert: Di, 24. Apr 2012 16:33
- Wohnort: 72184 Weitingen
- Hat sich bedankt: 3 Mal
- Danksagung erhalten: 96 Mal
- Kontaktdaten:
- AUGE_OHR
- Marvin
- Beiträge: 12913
- Registriert: Do, 16. Mär 2006 7:55
- Wohnort: Hamburg
- Hat sich bedankt: 19 Mal
- Danksagung erhalten: 46 Mal
Re: Indexkey-Länge für FOXCDX
PDR 4846
The following restrictions apply to the CDXDBE:
- maximum key-expression size plus for-expression size if 512 byte.
This means your key-expression can be at max. 512 bytes if no
for expession is given. Or in other words both expession share
the same storage location which has a maximum size of 512 bytes.
- maximum key-value length is 240 bytes. This implicates that if
you have a collation table active the size in characters of your
key-value is limited to 120 chars - this is bec. the CDXDBE
collation table transforms the key-value by expanding each
character into 2 bytes. If collation is ASCII or CDXDBE_MODE
is FOXPRO2X, no transformation occurs and the key-value size
is restricted to 240 characters.
gruss by OHR
Jimmy
Jimmy
- Wolfgang Ciriack
- Der Entwickler von "Deep Thought"
- Beiträge: 2945
- Registriert: Sa, 24. Sep 2005 9:37
- Wohnort: Berlin
- Hat sich bedankt: 13 Mal
- Danksagung erhalten: 34 Mal
- Kontaktdaten:
Re: Indexkey-Länge für FOXCDX
Danke Jimmy.
Hm, meine DBFs sind ASCII, also müssten doch 240 Zeichen möglich sein ?If collation is ASCII or CDXDBE_MODE
is FOXPRO2X, no transformation occurs and the key-value size
is restricted to 240 characters.
Viele Grüße
Wolfgang
Wolfgang