Current location: Hot Scripts Forums » Programming Languages » ASP » Invalid procedure call or argument: 'Left'


Invalid procedure call or argument: 'Left'

Reply
  #1 (permalink)  
Old 12-05-05, 04:14 PM
taw taw is offline
New Member
 
Join Date: Dec 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Invalid procedure call or argument: 'Left'

Hi.
Any help on this would be really appreciated. This code was working fine until the site was moved to a new server. When I try and change the price list I am get the error below. I have searched everywhere for a solution but I can't seem to find one. I wondered if it could be a problem relating to moving to the new server, but if so I can't find an alternative method for the 'Left Function'.

Microsoft VBScript runtime error '800a0005'
Invalid procedure call or argument: 'Left'
The line that is marked 426 is causing the problem.

Code:
IF Request.Form("check") = "true" THEN
									  	DIM hike
										DIM prclbl,prchld,prc
										DIM i,prcpos
										
									  	hike = request.form("addec")
										prclbl = rsItems.Fields.Item("PriceOption").Value
										prcpos = (InStr(prclbl,"-")-1)
								426	prchld = Left(prclbl, prcpos)
									  	rsItems.Fields.Item("Price").Value = FormatNumber((rsItems.Fields.Item("Price").Value * hike),2,-2,-2,-2)
prc = FormatNumber((rsItems.Fields.Item("Price").Value), 2, -2, -2, -2)rsItems.Fields.Item("PriceOption").Value = (prchld & "-£") & prc
				                 	rsItems.Update
									  END IF
Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Include problem in C bkbenson C/C++ 4 02-08-05 05:24 AM
Invalid procedure call or argument: 'Left' kryptoMatic ASP 1 01-14-04 06:35 PM


All times are GMT -5. The time now is 09:06 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.