Results 1 to 2 of 2

Thread: Help! Again! Aerials Is Back!

  1. #1
    Aerials
    Guest

    Help! Again! Aerials Is Back!

    yay my internet works again
    Anyway---- How do I make my program check if the result of a calculation is an integer or not and if it isnt then display an error?

  2. #2
    Hyperactive Member Knowledge_is_Et's Avatar
    Join Date
    Dec 2001
    Location
    An Oak.
    Posts
    305
    Define a int variable.
    Then set the ints value to the value of the variable you want to check, after that compare the two values. If the value is not an integer, they will not be the same.

    This code will give you a warning such as: "warning: converting from 'double' to 'int', possible loss of data." or such.
    Now returning to the world of VB. Please make sure your seatbelts are securely fastened and all trays are in their upright and locked position.

Posting Permissions

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



Click Here to Expand Forum to Full Width