mat
11-25-2002, 10:37 PM
Sorry for the lame subject line, couldn't think of anything else to sum it up.
Basically, I have a script and I know it will be sent a variable(or variables) and the variable names will start with 'Q' and then it will just be a few numbers, however the amount of numbers that come after this 'Q' could be 3,4,5 or 2 etc. and it will e different numbers each time. i.e
sending to script.. Q234 ...Q34 or even Q2
So I need to be able to make a variable called qauntity which will take everything to the right of the 'Q' so:
Q34 becomes quantity=34
&
Q894 becomes quantity=894
.. you get the idea. Can anyone offer a simple method for doing this. I have seen something like
quantity = Right(Item,6)
where 'item' is any variable sent to the script in this case 'Q345..'
The problem is that this has not worked for me, probably becuase you need to specify the exact number of character you'd like after the 'Q' and in my case that cannot be specified becuase it changes.
mat,
Basically, I have a script and I know it will be sent a variable(or variables) and the variable names will start with 'Q' and then it will just be a few numbers, however the amount of numbers that come after this 'Q' could be 3,4,5 or 2 etc. and it will e different numbers each time. i.e
sending to script.. Q234 ...Q34 or even Q2
So I need to be able to make a variable called qauntity which will take everything to the right of the 'Q' so:
Q34 becomes quantity=34
&
Q894 becomes quantity=894
.. you get the idea. Can anyone offer a simple method for doing this. I have seen something like
quantity = Right(Item,6)
where 'item' is any variable sent to the script in this case 'Q345..'
The problem is that this has not worked for me, probably becuase you need to specify the exact number of character you'd like after the 'Q' and in my case that cannot be specified becuase it changes.
mat,