Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Evaluating spaces
Message
 
À
13/02/2002 11:33:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00619519
Message ID:
00619559
Vues:
17
>the problem is and i should have been more specific is the table looks more like this:
>c:\path\_____c:\path\path\________c:\path\path\path
>
>the underscores represent spaces.
>really it is just the last one with the three paths that is missing the '\'. the other problem is that the path's are not always uniform. it will vary in length throughout this field pending on where i want to point it.
>thanks

if it's only the last path in the string missing the bs, addbs() will still work.

If it could be any of them, how about:
x = "c:\path\    c:\path\path\    c:\path\path\path"
aline(lines, x,  .f., " ")
This will give you an array that looks something like
lines[1] = "c:\path\"
lines[2] = ""
lines[3] = ""
lines[4] = c:\path\path\
lines[5] = ""
etc...
now do a addbs on all the lines in the array and put them back together in a single string. Note: AddBs() on an empty string returns an empty string.

hth
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform