2004-11-16 08:35 PM
2004-11-19 08:18 AM
2004-11-19 01:14 PM
2004-11-19 01:25 PM
HANIEL wrote:I believe you mean INT(value). MOD uses the form x MOD y and returns the remaining (fractional, decimal) value after dividing x by y.
Would using MOD(parameter)=90 work?
2004-11-19 01:53 PM
2004-11-26 09:42 PM
2004-11-27 12:37 AM
Durval wrote:It should only happen if either of "something" and "anything" is a real (floating point) number. In fact, the warning should also occur for the <= and >= operators .... anything that includes an exact equality (or the exact inequality <>).
The "real types" are worse than I thought.
The warning is haunting me in A LOT of IFs that used to work perfectly in AC7.
I did some simple tests. It seems that any condition wich has an "=" or a "<>" sign in an IF-THEN statement makes the warning to come up.
Is it possible that we can not use such a basic code as "IF something = anything" without the annoying message anymore??
Please tell me I'm wrong...
2004-11-28 04:19 PM
2004-11-30 08:19 PM
2004-11-30 09:59 PM
Durval wrote:This warning is really very helpful, but the way AC communicates it is not. 'Real' types means floating point numbers, i.e. numbers with a fraction part like 3.14159...
The line where the warning points to have IF statements like these:
IF B=0 THEN ....
IF anyparameter<>0 THEN...
Despite the warnings, the object seems to work perfectly.
What 'real types' is AC talking about??
eps = 1e-5 IF (ABS(x) < eps) ...I think a better wish would be for errors/warnings to be displayed in something like the report window rather than displaying them one by one in a modal dialog box. Ideally you would be able to double click on any warning/error in the list and it would take you to the offending line. That way you can disregard warnings if you want to, but the reminder is always there... you never know when it might spare you a lot of grief.
2004-11-30 10:01 PM
StuartJames wrote:Stuart, i agree with you.
Won't it be great when macro's (as functions) work 'properly' and we can use;
if MyApprox(Angle, 90, AcceptableError)=TRUE then ...
Define Function "MyApprox" (variable, value, limit)
if ABS(value-variable) <= limit then TRUE
else FALSE
Balazs - where are you?
- Stuart