Table 20-3 lists the properties of the Message object and the datatype and uses of each. The first four properties of the Message object correspond to the first four properties of the Microsoft Windows message structure.
Use the values in the Message object in the event script that caused the Message object to be populated. For example, suppose the FileExists event contains the following script. OpenWithParm displays a response window that asks the user if it is OK to overwrite the file. The return value from FileExists determines whether the file is saved:
OpenWithParm( w_question, & "The specified file already exists. " + & "Do you want to overwrite it?" ) IF Message.StringParm = "Yes" THEN RETURN 0 // File is saved ELSE RETURN -1 // Saving is canceled END IF
When processing messages, Windows CE supports both system-defined messages and application-defined messages. Windows CE does not support hooking messages. For information on Microsoft message numbers and parameters, see the Microsoft documentation in the MSDN library.
Copyright © 2004. Sybase Inc. All rights reserved. |
![]() |