Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 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 21st, 2004, 02:45 PM
Registered User
 
Join Date: Jan 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Trim()

For some reason the trim command is generating an error. What is the namespace where trim is on? I already imported the following: Imports System
Imports System.Net
Imports System.String
Imports System.Web
Imports System.Web.HTTPRequest
Imports System.Web.Mail
Imports Microsoft.VisualBasic

 
Old January 21st, 2004, 03:10 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Trim is a method of System.String. I don't how you are doing it now, but try this:

stringVariable.Trim()

Peter
------------------------------------------------------
Work smarter, not harder.
 
Old January 21st, 2004, 11:19 PM
Authorized User
 
Join Date: Jan 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

this way also

in VB
  strTemp = Trim(String1)
  this should work forsure without any additional importants.







Similar Threads
Thread Thread Starter Forum Replies Last Post
trim with ListFolderContents melkin Classic ASP Components 1 September 12th, 2008 03:03 PM
How can i trim space using XSLT? Mitali XSLT 5 July 25th, 2008 03:15 PM
Trim MathLearner VB Databases Basics 2 May 16th, 2007 11:38 PM
How to trim strings ajit Javascript 4 June 20th, 2006 10:30 AM
String.trim() mrfox BOOK: Professional JavaScript for Web Developers ISBN: 978-0-7645-7908-0 1 January 8th, 2006 12:23 AM





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