View Full Version : Invalid procedure call or argument: 'mid'

08-11-2005, 05:10 PM
names = mid(names, 0, len(names)-2)

names = fldQuantity, fldSize, fldProductID,
len(names)-2) returns 34
but I get: Invalid procedure call or argument: 'mid'

08-11-2005, 06:11 PM
You have another variable on the page using mid... I usually get caught on it when getting a menu ID... which i usualy call mID in the db... so i call it as that on the page and all hell breaks loose...

08-11-2005, 08:38 PM
I am assuming you want names without the last two characters. If so, you can do either of the two:

1) names = left(names, len(names)-2)
2) names = mid(names, 1, len(names)-2)

If you are using the mid function and you set the start position to 0, it will error out with the error you posted.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum