Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional 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 October 10th, 2003, 06:01 AM
Registered User
 
Join Date: Oct 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default LEFT ERROR

Whenever i try to create a file on the server i get the following error message. I have checked the server and anonymous access is on and integrated windows security

Invalid procedure call or argument: 'left'

the line of code is

l_strSoundFile = left(l_strSoundFile,instr(l_strSoundFile,".")-1)

 
Old October 10th, 2003, 09:23 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

"Left" is part of the Microsoft.VisualBasic namespace, so you need to make sure you are importing that namespace. Alternatively (and better) you should use the .net string object functionality:

l_strSoundFile.Substring(0, l_strSoundFile.IndexOf(".") - 1)

Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
LEFT vs LEFT OUTER joxa83 SQL Server 2005 3 September 18th, 2008 03:13 AM
Report from right to left roy_mm Reporting Services 0 February 20th, 2007 11:11 AM
Zeros at left... comicghozt Access 7 October 3rd, 2006 02:27 AM
Left Join error mariakovacs Access ASP 2 October 13th, 2003 04:16 PM
Left Error kilika ASP.NET 1.0 and 1.1 Professional 3 July 7th, 2003 04:41 PM





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