Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need some Improvement (STRTRAN Function)
Message
From
13/11/2017 09:07:47
 
 
To
13/11/2017 05:57:52
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01655516
Message ID:
01655538
Views:
40
>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
>
No its not the case Sensitive Issue. I just Need to The 1 numeric Position from where my String starts and the Last position of where the String Ends so that I can Extract it using SUBSTR() Function
Harsh
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform