Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bug fix - cdataenv.vcx ccursor.createindex()
Message
De
07/10/2008 15:45:50
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
Bug fix - cdataenv.vcx ccursor.createindex()
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01353421
Message ID:
01353421
Vues:
57
I just got bitten by a really obscure bug trying to index on "stage".

To fix it, open cdataenv.ccursor.createindex()
and change
		lnPosition = ATC("TAG", tcIndex)
		IF lnPosition != 0
		
			*--- Get a substring of the INDEX command...from TAG, forward
			lcTagString = SUBSTR(tcIndex, lnPosition)
to
		lnPosition = ATC(" TAG ", tcIndex)
		IF lnPosition != 0
		
			*--- Get a substring of the INDEX command...from TAG, forward
			lcTagString = SUBSTR(tcIndex, lnPosition+1)
and
				tcIndex = STUFF(tcIndex, lnPosition+lnStartTagName+lnSpaceAfterTagName-1, 0, "OF (CDX(1)) ")
to
				tcIndex = STUFF(tcIndex, lnPosition+lnStartTagName+lnSpaceAfterTagName-1, 0, " OF (CDX(1)) ")
Répondre
Fil
Voir

Click here to load this message in the networking platform