How to test whether something is a string?
Hi, In DTML, is there anyway of testing whether something is a string? (This is because I am using the <SELECT MULTIPLE...> form in submitting a HTML form. For single choice, the object submitted is a string, for mulitple choices, the object submitted is a list of strings. It would be helpful if I could test the type of the submitted object.) regards, Hung Jung ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com
I asked this a while ago, and while testing for type would be fun, the easy way to do what you want is to make the returned value a list, then work with it as a list always. something like: <SELECT MULTIPLE ... name=myselect:list > -- Jim Washington Hung Jung Lu wrote:
Hi,
In DTML, is there anyway of testing whether something is a string?
(This is because I am using the <SELECT MULTIPLE...> form in submitting a HTML form. For single choice, the object submitted is a string, for mulitple choices, the object submitted is a list of strings. It would be helpful if I could test the type of the submitted object.)
regards,
Hung Jung
participants (2)
-
Hung Jung Lu -
Jim Washington