I have what is a very simple function that pads a single digit with a leading "0" like. I am losing my mind trying to figure out WHY I can't get any return but "Type Mismatch". The code below treats it like a string, but I have tried forcing it to integer with cint and I can't get it to do anything but complain about a type mismatch.
AND I'm WAY behind schedule! Argggggg - I should have used php.
<Script LANGUAGE = "VBScript">
if len(idx) > 1 then
LPad="0" & idx