Wrox Programmer Forums
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 23rd, 2006, 12:11 PM
Authorized User
Join Date: Dec 2005
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
Default Only the first character


We have an employee database. I'm looking for a way to strip off all the employee's ID numbers, except for the first one (which is the location of the employee.)

For example: my employee number is 14482991. The "1" signifies that I'm at corporate HQ. I need to be able to make a little program that displays a certain message if the first number is 1 or 5.


Old January 23rd, 2006, 03:41 PM
Authorized User
Join Date: Jun 2003
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts

key = "123456789"
response.write left(key,1)

Similar Threads
Thread Thread Starter Forum Replies Last Post
character entity into numeric character entity srkumar XSLT 1 November 22nd, 2007 04:53 AM
Replace character gregalb SQL Server 2000 6 July 12th, 2007 01:14 AM
Drop last character gregalb SQL Server 2000 3 June 18th, 2007 07:31 AM
chop last character crmpicco Perl 2 February 22nd, 2007 05:32 AM
Character set muthukumar Oracle 0 November 8th, 2005 12:49 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.