[thelist] cint() error question

Taurus James taurus_james at yahoo.com
Thu Jan 4 10:29:16 CST 2007


Try checking if value is numeric using something like...

     If isNumeric(cid) = True Then
       cid = cInt(cid)
       '...
     End If

- Taurus

--- Joel D Canfield <joel at spinhead.com> wrote:

> > is there a way to test that cid IS in fact an integer,
> before 
> > trying to cast it as such?
> 
> how about
> 
>     If (VarType(cid) = vbInteger) Then
>       'do stuff
>     End If
> 
> maybe?
> 
> joel
> -- 
> 
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
> 
> For unsubscribe and other options, including the Tip Harvester
> 
> and archives of thelist go to: http://lists.evolt.org 
> Workers of the Web, evolt ! 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the thelist mailing list