[thelist] ASP: DIM var AS ??

Gary McPherson genyus at ingenyus.net
Wed Jul 2 17:33:51 CDT 2003


> >Weird thing... ONLY the "else" gets triggered, even when cat 
> and cat_id 
> >are equal.  I have checked and double checked (even 
> response.wrote the 
> >two vars to the screen) but for what ever reason klass will never be 
> >equal to "navigation2".  Ever.  Even when cat = cat_id.
> >
> >About the only thing I can figure is that cat is being defined as a 
> >string and cat_id as a number (or vise versa).  So I need to 
> know how 
> >to specifiy that both are integers.
> 
> CInt(cat) = CInt(cat_id)
> 
> But if you can't cast either variable, it will break your code.

Very true, although having stated that both variables appear to have the
same value, one would assume such a conversion would be successful.

Casey, it might help if you explained to us how you're obtaining the
values for cat and cat_id - form fields, recordset, hardcoding, etc.

Gary




More information about the thelist mailing list