Talk:TAB - QB64 Wiki

Talk:TAB

From QB64 Wiki

Revision as of 21:28, 11 March 2010 by Stylin (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Don't understand the logic of your MOD statement. Perhaps that would be better used in an example instead of the description?

Also the QB64 _WIDTH function returns the width of an image. See _WIDTH (QB64). The underscore is not used as it is a Qbasic statement to define the SCREEN width. The WIKI ignores underscores, but it should be removed anyhow.


<stylin> yeah, the algorithm isn't very intuitive, and I'm not sure the best way to describe it either, so perhaps an example would be the best way. "wraps-around" isn't exactly right. But, if you have a screen width of say 8 columns, then the parameter would be interpreted like this:

original value interpreted value
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 1
10 2
11 3
12 4
13 5
14 6
15 7
16 8
17 1
and so on