home *** CD-ROM | disk | FTP | other *** search
- /* Sample DDE Server - Don't run this script.
- Copyright (C) 1989, 1990 Digital Communications Associates, Inc.
- All Rights Reserved.
- 04/01/89 - chr
-
- This scripts waits for "to_be_squared" to be poked
- then squares it and stores the result in "the_answer"
- and then waits for the next item to be squared. If the
- variable "quit_now" is poked with a "q" then the script will
- terminate immediately.
- */
-
- integer to_be_squared,the_answer
- string quit_now
-
- clear /* clear the crt */
-
- to_be_squared = 0
-
- label the_top
-
- print "waiting for 'to_be_squared' to be poked"
-
- while to_be_squared = 0 and quit_now <> "q"
- wait 5 ticks
- wend
-
- if quit_now = "q" then print "we're done" : wait 1 second : terminate : end
-
- the_answer = to_be_squared * to_be_squared
-
- print str(to_be_squared)+" squared is "+str(the_answer)
-
- to_be_squared = 0
-
- goto the_top
-
- end
-
-
-