Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need some Improvement (STRTRAN Function)
Message
De
13/11/2017 05:57:52
 
 
À
12/11/2017 14:12:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01655516
Message ID:
01655536
Vues:
42
Infortunatly , dont read all the thread but i remark in your question one thing:
the strtran as used by you is case sensitive (defaut flag=0)
try the case strtran with insensitive flag (1) as below:
for vfp9:
*STRTRAN(cSearched, cExpressionSought [, cReplacement]   [, nStartOccurrence] [, nNumberOfOccurrences] [, nFlags])
*flag 1  Search is case-insensitive and replacement is performed with exact cReplacement text. 
 
cFile=STRTRAN(cFIle,cMissingText,cReplacedText,1,1,1) &&first occurence,one occurence,insentive case
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform