VBA/Excel/Access/Word/String Functions/String Replace — различия между версиями

Материал из VB Эксперт
Перейти к: навигация, поиск
м (1 версия)
 
(нет различий)

Версия 19:33, 26 мая 2010

Replace replaces one string with another:

   <source lang="vb">

Sub ReplaceExample()

   Debug.Print Replace("Say Hello if you want to", "hello", "bye")
   "Returns Say bye if you want to
   Debug.Print Replace("This gets rid of all of the spaces", " ", "")
   "Returns Thisgetsridofallofthespaces

End Sub

</source>