Download "user manual"
Transcript
instance allows data to be transferred in and out of a spreadsheet using DDE; it is also possible to open, manipulate and close Excel spreadsheets remotely via DDE. Similar actions are possible in Word, Access, Netscape, Explorer and numerous other applications - including ToolBook. It is therefore possible to control other applications from ToolBook and to transfer data between that application and ToolBook. The nature of the conversation between the programs can be client server or peer to peer (in the control sense rather than the networking sense). While DDE is impressively easy to use in OpenScript (despite having non-standard names for the messages/commands compared to those used in Windows programming in general). For some applications of ToolBook a simple DDE conversation may be all that is required and that will work perfectly adequately. However, applications such as Access can be unusably slow in transferring data back to ToolBook. It is hard to tell where the blame lies but the net effect is that a DDE link between the two can be unbelievably sluggish. For example, a multiple choice question system which used Access to store the questions and ToolBook to display them on screen took up to 2 minutes to DDE transfer 15 short strings and an integer. The same information retrieved and displayed in Access itself appeared almost instantly. The use of DDE should not be ruled out on these grounds but a commitment to use this channel of communication should not be made with undertaking a pilot study of the intended link in use. 4.4.4. Object Linking and Embedding (OLE - but not OLE 2 or ActiveX) It is possible to embed OLE objects, such as an Excel graph, in a ToolBook page. However, this approach to linking applications is seriously flawed if the end-user does not have the same version of the embedded software on their machine or if it is not in the same directory. Certainly this is not viable for ToolBook books produced for general circulation. An OLE object has a set of properties associated with it just like any other ToolBook object and these can be manipulated in OpenScript. 4.4.5. Direct access to other ToolBook books from OpenScript Unlike DDE links, directly accessing any objects or data in another ToolBook book does not require that the other book is open and requires no special protocol. For instance, it is not widely known that a second ToolBook book set to read/write access may be used as a simple but effective log file (or to record user preferences or similar persistent data) which may be read and written by multiple users in the same way that an ANSI text file would be. From a book which is read-only and opened simultaneously by multiple users, a separate read/write book can be opened, written to and closed for each and every log operation. ToolBook itself will take care of any back-off and retry upon collision of more than one user trying to access the log book simultaneously. The ease9 of this operation can be seen from the shortness of the following code fragment which writes a user's name and score to a text box (i.e. field) in a ToolBook book called "scorelog.tbk". 9 Do not worry about the detailed meaning of the code unless you have looked at OpenScript programming in detail before; it is merely included to show that volumes of programming are not required simply to log information to another ToolBook book. TLTP Economics Consortium • A Critical Evaluation of Multimedia ToolBook - A SIMA Report • 9 May 96 • Page 37