I have the following script to generate a random number between upper
and lower limits. It works without a hitch on the Mac. When I run it on
the Windows platform I preiodically get a divide by zero error at line
810 column 20. When I open the script the cursor is flashing in front of
the very first line, the on opencard, not anywhere close to line 810.
Using traps I isolated it to this script, which may be line 810, I don't
really know.
    How do I get around the error. Is there a better way to do this?
    Thanks
    Rick
on generateMCH
  global MCH, glower, gupper
  put empty into MCH
  repeat until MCH >glower
    put  random(gupper) into MCH -- this is the line that fails, I think

  end repeat
  put MCH/10 into MCH
  put MCH into line 5 cd field "RBCresults"
end generateMCH


Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to