On Sunday, March 20, 2016 at 8:19:41 PM UTC-4, Ron Chatterjee wrote:
>
> Got cha. But if I have a single value in request.vars.name it was showing 
> a length of 2.
>

Of course. The len() function returns values based on the type of object 
passed to it -- if you pass in a string that is two characters long (i.e., 
'22', it will return 2, and if you pass in a list that has two elements, it 
will also return 2.

Anthony

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to