Code Bank
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingCode Bank

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old December 21st, 2004, 03:11 AM
daveevans daveevans is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 7 daveevans User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy Is it possible...

Hi, i am quite new to this programming stuff and have a simple request:
I return sentences, all different lengths from a database but would only like to return the first 15 characters from the sentence only. I have looked at len, right, left etc functions but am unsure what to do. I am using asp and vbscript.

Thanks in advance

Reply With Quote
  #2  
Old December 21st, 2004, 07:21 AM
satishkumarj satishkumarj is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 109 satishkumarj User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 1 h 37 m
Reputation Power: 4
Mid,Left

Quote:
Originally Posted by daveevans
Hi, i am quite new to this programming stuff and have a simple request:
I return sentences, all different lengths from a database but would only like to return the first 15 characters from the sentence only. I have looked at len, right, left etc functions but am unsure what to do. I am using asp and vbscript.

Thanks in advance

Hi,

Code:
  
 
Left(yourstring, 15)
Mid(yourstring, 1, 15)




above 2 ways u can return the 1st 15 letters.
hope this will help for u....


Regards,
Satish Kumar J...

Reply With Quote
  #3  
Old December 21st, 2004, 09:12 AM
daveevans daveevans is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 7 daveevans User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
that's great thanks

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingCode Bank > Is it possible...


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT