Go Back   Webmaster Centre News and Discussion Forum > Website Developement > Web Programming

Web Programming Post your questions, tips and opinions on web scripting, programming languages. Subject areas include Java, Java Script, PHP, ASP, .Net, XML, Perl, HTML, Flash,etc

Reply
 
LinkBack Thread Tools Display Modes
Old 05-01-2008, 02:31 AM   #1 (permalink)
Junior Member
 
Default Get last charater from string - asp.net?

string = "James"
string = "peppers"

No matter the length of string I want to grab the last character.

I want to find out the value of the last character of a string, I don't want to delete it or anything else I just want to be able to put the value into a variable and then I will decide what to do.
James P is offline   Reply With Quote
Old 05-01-2008, 02:31 AM   #2 (permalink)
Junior Member
 
Default

c = right (string, 1)
EddieJ is offline   Reply With Quote
Reply

Bookmarks



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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



All times are GMT +1. The time now is 09:58 PM.
Powered by vBulletin® Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Style Provided By: Wrestling Clique - Wrestling Forums

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44