mep2@quads.uchicago.edu (meaghan elizabeth parker) (05/20/91)
Dear Netters,
I'm trying to write a script that will plot a graph based on the results
of population calculations.
For some reason, I can't get HC to understand what I mean when I use a drag
command. It keeps giving me an error and telling me that an integer is
expected.
My syntax is: drag from varx1,vary1 to varx2,vary2
where all four are variables
why wont it do this?
Enclosed is the script, the variables are oldx,oldy,newx,and newy.
If you have any ideas of how I can get HyperCard to understand me, please
e-mail.
Repeat until Gpop + 1 = Gen
put "Generation" && Gen && ": " && trunc(Opop) && Return into line nl of fld "Display Table"
set textStyle of line nl of fld "Display Table" to plain
put nl + 1 into nl
get Mpop*(1 - (Dpop*Opop))*Opop
put it into Opop
choose pencil tool
put Gen + 16 into newx
put Opop/10 + 508 into newy
drag from oldx,oldy to newx,newy *** Here's the problem.
put newx into oldx
put newy into oldy
put Gen + 1 into Gen
end repeat
--NB: oldx and oldy are initialized in another part of the code and have values
Gen, Opop and other variables are values from the data I'm trying
to graph.
Thanks In advance,