Code center > Confirmed & Outstanding bugs
Run-time error 6
Botsareus:
Yea, this thing still lives! apparently. I thought I took care of that one. Back to the drawing toolz.
Botsareus:
Oh, looky here. Testlund got me an autosave that actually crashes! Good Job!
There is no specific description on the mod operater that it does not handle anything greater then an unsigned integer, proof:
--- Quote ---Used to divide two numbers and return only the remainder.
Syntax
result = number1 Mod number2
The Mod operator syntax has these parts:
Part Description
result Required; any numericvariable.
number1 Required; anynumeric expression.
number2 Required; any numeric expression.
Remarks
The modulus, or remainder, operator divides number1 by number2 (rounding floating-point numbers to integers) and returns only the remainder as result. For example, in the followingexpression, A (result) equals 5.
A = 19 Mod 6.7
Usually, thedata type of result is aByte, Byte variant,Integer, Integer variant,Long, orVariant containing a Long, regardless of whether or not result is a whole number. Any fractional portion is truncated. However, if any expression isNull, result is Null. Any expression that isEmpty is treated as 0.
--- End quote ---
Botsareus:
It is a long, damn.
Botsareus:
My result is an integer, that was stupid. Here we go, this should work:
Once again, robots I can debug, people entering retarded numbers I can not. I can not be expected to put floor and ceil on every damn text box can I?
New project for Shadowgod: I want you do go trough ALL the textboxs you can find in Darwinbots and check if you can crash Darwinbots by putting goofy values in teh textboxes.
Shadowgod2:
oh boy, this will be fun. i'll start tonight, 2 sims at a time.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version