Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Defint A-Z

Defint A-Z

Defint A-Z

What does DEFINT A-Z stand for, qbasics helb file is very vague.

RE: Defint A-Z

It makes all variables that don't have a dollar sign (i.e. not a string) into integers.  Integers have no decimal point, just plain ole numbers.  Anything with a decimal is rounded up to the next whole number.  It's just an easy way of making QBasic treat all number variables as whole numbers.

RE: Defint A-Z


RE: Defint A-Z

And that generally used to speed things up (because loop counters usually integers and Basic works faster with integers)
But you can define over types of variables with dim (like dim x as double) or use special symbols to denote type (x!, x#, x& and as was mentioned x$).

RE: Defint A-Z

in addition.... where do you put it? do you just toss it in the beginning of your program, and it will apply to all variables after?

   King Poncho

RE: Defint A-Z

It can be placed anywhere but is normally placed at the top of SUBs

SUB subname (parameter)

If a man says something in the forest and no woman hears it is he still wrong?

RE: Defint A-Z

Or the top of the main module.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close