[thelist] ASP - actions taken before redirect? (again)

Warden, Matt mwarden at mattwarden.com
Fri Sep 28 06:05:57 CDT 2001


>WM> http://evolt.org/article/webforms/17/10199/index.html
>
>is damn fine...however...
>
>   sField = Request.Form("Field")
>   if isEmpty(sField) then
>      ...
>   end if
>
>always comes back false as it has been initialized by assigning a
>field value, even if that value is "" as "" is a valid value that isn't
>empty.  someone else has already mentioned this on the article, so i
>won't add another comment...
>
>have a look at sgd's article which, i think, backs me up! :>
>
>http://evolt.org/article/Empty_Nothing_and_Null_How_do_you_feel_today/17/346/index.html

sgd's the one who suggested i change it from 'if trim(sField)="" then' to
'if isEmpty(trim(sField)) then'

in fact, when that other comment came up, i did some testing and
responded, as you can see on the article.

i could not reproduce what the two of you are suggesting. maybe it's a
version thing?



--
mattwarden
mattwarden.com





More information about the thelist mailing list