Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Data environment gotcha?
Message
De
28/09/2001 10:43:28
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
28/09/2001 07:43:19
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00561731
Message ID:
00561925
Vues:
24
Just a minor addition:
>>	FOR lnCount = 1 TO lnObjects
>>		loObject = EVALUATE('THIS.' + laObjects[lnCount])
>>		IF UPPER(loObject.BaseClass) = 'CURSOR'
>>			lcDatabase = loObject.Database
* If this is a free table, <b>it's .CursorSource</b>
>>			IF !EMPTY(lcDatabase)
>>			   loObject.Database = ForcePath(lcDatabase, lcPathSet)
			ELSE
			loObject.cursorsource=ForcePath(loObject.cursorsource, lcPathSet)
>>			ENDIF EMPTY(lcDatabase)
>>		ENDIF UPPER(loObject.BaseClass) = 'CURSOR'
>>	NEXT lnCount
I simply prefer using ForcePath(), not because it's an old FoxTools function, but because it doesn't care whether the path has a final backslash or not.

Another gotcha is when you copy a form from one project to another using SaveAs, it will recalculate the paths for all its tables in the DE to point to the old location. You must copy it as a file (i.e. as a pair of files).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform