Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Space parcing
Message
 
À
06/02/2002 12:16:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00616135
Message ID:
00616197
Vues:
26
How about:

use MyTable
replace MyBadField with Strtran(Chrtran(MyBadField, " ", ""), "c:\", "d:\") ALL
The chrtran whacks the spaces, and the strtran changes the C:/D:.

>hey everyone,
>i have a series of tables which need to be corrected. the problem is that the tables have a column which the path is stored. the data within the column looks like the following:
>
>(the hyphens represent spaces)
>c:\something-----c:\something\somethingelse------c:\something\somethingelse\this
>
>
>
>i need to replace the c: with d: and also make some other changes. the changes will be uniform through-out all the programs.
>
>how do i take the spaces out of the table, make the corrections, and then restore the table back to the way it was with the new corrections(i.e. add the correct number of spaces back)? any help would be appreciated. thank you.
Roi
'MCP' Visual FoxPro

In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform