Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.1
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 7th, 2005, 07:39 AM
Authorized User
 
Join Date: Dec 2004
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to insert spaces after each letter in a word

Hi,
  I want to insert a space after each letter in a word. For example take a word 'ASP' I want to seach the SQL date base for the word 'ASP' and 'A S P'. So How do I put spaces. Please help. Split function in asp doent help me as there is nothing to split.

bdl
__________________
bdl
 
Old March 7th, 2005, 05:26 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

Try this:

        Dim strText, strNewText As String
        Dim i As Integer

        strText = "ASP"

        For i = 1 To Len(strText)
            strNewText = strNewText + strText.Substring(i - 1, 1) + " "
        Next

        Label1.Text = strNewText
 
Old March 9th, 2005, 01:23 PM
Authorized User
 
Join Date: Dec 2004
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks
I have solved by using mid finction

bdl
 
Old March 10th, 2005, 07:58 AM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 623
Thanks: 0
Thanked 1 Time in 1 Post
Default

Code:
yourString.Replace(" ASP "," A S P ");
//or
yourStringBuilder.Replace(" ASP "," A S P ");
_____________
Mehdi.
software student.





Similar Threads
Thread Thread Starter Forum Replies Last Post
open word document and insert data PorcupineRabbit Visual Basic 2005 Basics 1 August 9th, 2007 06:31 PM
Function to find if a letter is in a word jfrizelle Access VBA 2 January 29th, 2007 05:44 PM
Insert Word file paul20091968 Word VBA 1 September 13th, 2006 07:48 AM
i want insert a word file in mysql vivekkumar_23 Java Databases 2 May 25th, 2006 06:42 AM
insert word files thru code geetabajpai VB How-To 0 October 7th, 2005 04:22 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.