I can't remember where I saw this, so if anyone can refresh my memory, I would greatly appreciate it.
It's tough to explain how this works in a way. The thing I'm talking about is actually a mathematical operator, which is useful in certain types of calculations. To explain, I'll give an example. Basically, it's a "If variable = 10 give or take 5" type operator.
Let's say you wanted to specify a certain area on the screen as a "zone" for the cursor. What I mean is, if the cursor is in this area, something happens. A way you could do it is:
mx = MOUSEX()
my = MOUSEY()
IF mx 1 AND my 1
That's a mouthful! Alot for the compiler to do!
The operator I'm talking about works like this:
You use a tilda (spelling?) sign in place of the equals sign. You next enter the value wanted, then in parenthesis, the range upon which to calculate. So, the above example would be
mx = MOUSEX()
my = MOUSEY()
IF mx ~ 2(1) AND my ~ 2(1)
Or, If mx is approximately 2, give or take one, and my is approximately 2, give or take one, then the statement is true.
Anyway, would LOVE to see this in DBPro (or just remember where the heck I saw it before lol bothers ya when you can't remember something)