Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - ASP 3.0  Urgent Help Required Please
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ASP 3.0 Urgent Help Required Please

 Post Reply Post Reply Page  <123>
Author
mhanif View Drop Down
Groupie
Groupie
Avatar

Joined: 22 November 2007
Location: Pakistan
Status: Offline
Points: 52
Post Options Post Options   Thanks (0) Thanks(0)   Quote mhanif Quote  Post ReplyReply Direct Link To This Post Posted: 08 December 2007 at 9:10am
See it worked like this....
 
<%
Sentence = "This is sentence"
SplitWords = Split(Sentence, " ")
variable1 = SplitWords(0)
variable2 = SplitWords(1)
variable3 = SplitWords(2)
response.write variable1 & "<br />"
response.write variable2 & "<br />"
response.write variable3 & "<br />"
%>
 
so now i will be able to add one sentence in database but into pieces... and this is what i wanted... i think the work is done, i dont know if anything goes wrong later :) anyways....  Smile
Back to Top
jamie.townsend View Drop Down
Groupie
Groupie


Joined: 07 December 2007
Location: England
Status: Offline
Points: 114
Post Options Post Options   Thanks (0) Thanks(0)   Quote jamie.townsend Quote  Post ReplyReply Direct Link To This Post Posted: 08 December 2007 at 9:12am
Make sure your variable3 = SplitWords(2)
 
Glad I could help you getting this working.
Let me know if you need anymore help :)
Back to Top
mhanif View Drop Down
Groupie
Groupie
Avatar

Joined: 22 November 2007
Location: Pakistan
Status: Offline
Points: 52
Post Options Post Options   Thanks (0) Thanks(0)   Quote mhanif Quote  Post ReplyReply Direct Link To This Post Posted: 08 December 2007 at 9:13am

yes man i will need your help, soon i will reply my post here, once i go ahead with my work :)

Back to Top
mhanif View Drop Down
Groupie
Groupie
Avatar

Joined: 22 November 2007
Location: Pakistan
Status: Offline
Points: 52
Post Options Post Options   Thanks (0) Thanks(0)   Quote mhanif Quote  Post ReplyReply Direct Link To This Post Posted: 08 December 2007 at 9:15am

see, i just got stuck Big%20smile

can u tell me something which can help me with this... see what i want is
 
variable1 = "First word of sentence"
variable2 = "second word of sentence"
 
and i want variable3 = "the remaining part of the sentence" no matter 100 words are remaining.
 
 
Edited:(
Back to Top
jamie.townsend View Drop Down
Groupie
Groupie


Joined: 07 December 2007
Location: England
Status: Offline
Points: 114
Post Options Post Options   Thanks (0) Thanks(0)   Quote jamie.townsend Quote  Post ReplyReply Direct Link To This Post Posted: 08 December 2007 at 9:16am
Good luck in your coding travels Smile
Back to Top
mhanif View Drop Down
Groupie
Groupie
Avatar

Joined: 22 November 2007
Location: Pakistan
Status: Offline
Points: 52
Post Options Post Options   Thanks (0) Thanks(0)   Quote mhanif Quote  Post ReplyReply Direct Link To This Post Posted: 08 December 2007 at 9:22am
Ok, That is solved too i think, thanks man........  hope to talk to you soon.
Back to Top
jamie.townsend View Drop Down
Groupie
Groupie


Joined: 07 December 2007
Location: England
Status: Offline
Points: 114
Post Options Post Options   Thanks (0) Thanks(0)   Quote jamie.townsend Quote  Post ReplyReply Direct Link To This Post Posted: 08 December 2007 at 9:25am
Perhaps something like this:

<%
Dim SplitWords
Dim Sentence
Dim Variable1, Variable2, Variable3

Sentence = "This is your sentence"
SplitWords = Split(Sentence, " ")
Variable1 = SplitWords(0)
Variable2 = SplitWords(1)

Dim i
For i = 2 to Ubound(SplitWords)
Variable3 = Variable3 & " " & SplitWords(i)
Next
response.write(Variable1 & "<br />")
response.write(Variable2 & "<br />")
response.write(Variable3 & "<br />")
%>
Back to Top
mhanif View Drop Down
Groupie
Groupie
Avatar

Joined: 22 November 2007
Location: Pakistan
Status: Offline
Points: 52
Post Options Post Options   Thanks (0) Thanks(0)   Quote mhanif Quote  Post ReplyReply Direct Link To This Post Posted: 08 December 2007 at 9:34am
Great Smile 
Back to Top
 Post Reply Post Reply Page  <123>

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.