Usenet.com

www.Usenet.com

Group Index

Comp Thread Archive from Usenet.com

<-- __Chronological__ --> <-- __Thread__ -->

Re: Search and replace in a string



Try this....



;//Start==========================
Method  cmMatchStreet( Var strTemp string) String
;----------------------->
Var

  si                 smallInt

  strTemp2   String

endVar
;<----------------------

   si = strTemp.search("str."))
   strTemp2 = strTemp.subStr(1, si)
   strTemp2 = StrTemp2 + "strasse"

   return  strTemp2

endMethod

;//==========================end



To call the method:
--------------------------
strTemp = Hauptstr
strNewStreet = cmMatchStreet(strTemp) String


-- 
...
    `·.¸¸.·´¯`·.¸¸.·´¯`·->  rodney





<-- __Chronological__ --> <-- __Thread__ -->


Usenet.com



Please check out one of the premium Usenet Newsgroup Service Providers below for access to Usenet.