Type mismatch: 'cint'

Results 1 to 3 of 3

Thread: Type mismatch: 'cint'

  1. #1
    Join Date
    Dec 1969

    Default Type mismatch: 'cint'

    Type mismatch: &#039;cint&#039;<BR>I am getting this error message using cint.<BR>I have made sure the expression I am using CINT() on contains a numeric value. I can&#039;t figure out why it keeps on giving me this error. <BR>Can someone help?

  2. #2
    Join Date
    Dec 1969

    Default more info pls

    show code

  3. #3
    Join Date
    Dec 1969

    Default CINT is very limited...

    The number *must* be in the range -32768 to +32767 or CINT will give you that error.<BR><BR>CLNG has a range of roughly -2 billion to +2 billion.<BR><BR>Both of them *only* give you integers--that is, whole numbers.<BR><BR>If you want to be able to accept *any* number, use CDBL.<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts