Advertisement
5_2007-2008 Data Structures #184096

Replace String > Easy

Replace a string with something else. This is commented so even beginners can understand and see how to use it in your exisiting code.

AI

สรุปโดย AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

ซอร์สโค้ด
original-source
<%
'lets replace .net with .com
Dim mystring, newstring 
mystring = "www.mysite.net" 'Show what mystring is
newstring = Replace(mystring, ".net" , ".com")
'to print out your new string do like so:
Response.Write newstring
'Outputs:
'www.mysite.com
%>
Upload
ความคิดเห็นดั้งเดิม (3)
กู้คืนจาก Wayback Machine