Article View: comp.sys.mac
Article #1601WingZ Hyperscript
From: Ronald Bannon
Date: Wed, 19 Jul 1989 15:22
Date: Wed, 19 Jul 1989 15:22
54 lines
2363 bytes
2363 bytes
Hello,
I'm having trouble with WingZ hyperscript functions.
The first piece of code is a function which is called
from cell A1 with "=MyFunctions:Times_table(5)" but
this causes the WingZ program to quit. The other piece
of code is not a function but does the exact same thing
and it runs perfectly. Any suggestions?
*****************************************************************************
function Times_table (size)
define i
for i = 1 to size
put i into "r" & 1 & "c" & i + 1
put i into "r" & i + 1 & "c" & 1
end for
put "= B$1 * $A2" into B2
select range "r2c2" & ".." & "r" & size + 1 & "c" & size + 1
copy right
copy down
end function
*****************************************************************************
The above function causes WingZ to quit with error
28 (ELSE without IF), however the below script runs
perfectly and is essentially the same except it is
not a function.
******************************************************************************
define size
size = 5
define i
for i = 1 to size
put i into "r" & 1 & "c" & i + 1
put i into "r" & i + 1 & "c" & 1
end for
put "= B$1 * $A2" into B2
select range "r2c2" & ".." & "r" & size + 1 & "c" & size + 1
copy right
copy down
******************************************************************************
I still have not been able to find a good book on
Hyperscript for WingZ and have resorted to experimentation.
Hopefully a good book will be published soon on programming
WingZ but until then I think I will do a minimum amount
of programming in Hyperscript.
Thanks,
Ron Bannon
bannon@andromeda.rutgers.edu (email)
Technical Details
Message-ID:
<Jul.19.11.22.22.1989.23735@galaxy.rutgers.edu>Path:
arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!galaxy.rutgers.edu!andromeda.rutgers.edu!bannonShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!galaxy.rutgers.edu!andromeda.rutgers.edu!bannon From: bannon@andromeda.rutgers.edu.rutgers.edu (Ronald Bannon) Newsgroups: comp.sys.mac Subject: WingZ Hyperscript Message-ID: <Jul.19.11.22.22.1989.23735@galaxy.rutgers.edu> Date: 19 Jul 89 15:22:22 GMT Sender: news@galaxy.rutgers.edu Reply-To: bannon@andromeda (Ronald Bannon) Organization: Rutgers University, Newark, NJ Lines: 54