Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Argh! Strings
Message
De
19/11/2010 12:37:15
 
 
À
19/11/2010 12:21:00
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01489800
Message ID:
01489805
Vues:
72
Tht's got it -
Thank you all for the help

>How about this.
>? substr(string,atc('word',string)-50,100)
>
>>I am running into trouble finding a solution to this.
>>
>>I want to search inside a string of text to find a word.
>>Once the word is found I want to back up say 50 characters.
>>Then extract about a hundred characters forward from the 50 characters back position.
>>The result would be a phrase of 100 characters with the seached word in the centre.
>>
>>PS - This is recreational programming - Nothing urgent going on :)
I ain't skeert of nuttin eh?
Yikes! What was that?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform