Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there a STRTRAN function which is not case sensitive
Message
From
30/04/2002 13:18:12
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00650635
Message ID:
00650978
Views:
28
>Replacementstring can be any case (it is "STRT(" in the example code). Searchstring can be anything, even a subset of replacementstring.

Here is what I meant :
lcStr = 'foxpro is nice'
lcSearchStr = 'foxpro'
lcReplacement = 'Visual foxpro'
_cliptext = lcStr
 
DO WHILE OCCURS(lcSearchStr, LOWER(_CLIPTEXT))>0 AND !CHRSAW()
   _CLIPTEXT=STUFF( _CLIPTEXT, AT(lcSearchStr, LOWER(_CLIPTEXT) ), ;
      LEN( lcSearchStr ), lcReplacement )
   ? _cliptext   
ENDDO
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform