If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > removing first 11 characters in a string

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-23-03, 11:02
tinkxtheminx tinkxtheminx is offline
Registered User
 
Join Date: Aug 2003
Location: London,UK
Posts: 54
removing first 11 characters in a string

i have got a string called oldname which holds some information

however i need to remove the first 11 characters from this string

can it be done and how please.

i have been looking on the nex and the closest that i can find is Left() which only uses the first 11 characters but i get hold of the rest

thankx in advance
Reply With Quote
  #2 (permalink)  
Old 10-23-03, 11:13
fontaine fontaine is offline
Registered User
 
Join Date: Oct 2003
Location: Chicago
Posts: 2
use mid(STRING, STARTPOSITION, ENDPOSITION)

Hi,

Use the mid(STRING, STARTPOSITION, ENDPOSITION) function.

In your case to remove the first 11 characters it would be:

<%
// If endposition attribute is not declared, will just read to the end...
// ...of the string
response.write mid(your_string, 12)
%>

Hope this helps!
Reply With Quote
  #3 (permalink)  
Old 10-24-03, 06:45
rhs98 rhs98 is offline
Super Moderator
 
Join Date: Feb 2002
Location: Hampshire, UK
Posts: 441
or left(string,length) or right(string,length)
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On