Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Different Text formats using a function
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Different Text formats using a function

 Post Reply Post Reply
Author
usaboy View Drop Down
Newbie
Newbie
Avatar

Joined: 05 July 2003
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote usaboy Quote  Post ReplyReply Direct Link To This Post Topic: Different Text formats using a function
    Posted: 13 July 2003 at 5:09pm

Hi.. i have a string like this :

first line

second line

third line

forth line

fifth line

sixt line

 

now i need a function to do this :

put <b> </b> around the first line

put <i> </i> around the second line

put <br> instead of the third line which is a crriage returne

and then loop the same thing for the rest..

put <b> </b> around the forth line

put <i> </i> around the fifth line

put <br> on the sixth line... and so on...

how can i do that using a function in VBScript?!?!

tanx sooo much

Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 15 July 2003 at 9:48am
array = split(string, vbCrlf)

response.write("<b>" & array(0) & "</b>")

..etc
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.