在datawindows中message.returnvalue = 1这一行代码起什么作用?除了1还有其他值吗?
Return 1 //不弹出PB的message错误提示框。
Return 0 //默认,弹出错误框。
The first four properties of the Message object correspond to the first four properties of the Microsoft Windows message structure:
Message property Data type Description
Handle Long The handle of the window or control.Platform note
Handle returns a handle you can use with external functions on the Windows and UNIX platforms.
Number UnsignedInt The number that identifies the event (this number comes from Windows).
WordParm Long The word parameter for the event (this parameter comes from Windows). The parameters value and meaning are determined by the event.
LongParm Long The long parameter for the event (this number comes from Windows). The parameters value and meaning are determined by the event.
DoubleParm Double A numeric or a numeric variable.
StringParm String A string or a string variable.
PowerObjectParm PowerObject Any PowerBuilder object type including structures.
Processed Boolean A boolean value set in the script for the user-defined event or the Other event. Values are:· True — The script processed the event; do not call the default window Proc (DefWindowProc) after the event has been processed.· False — (Default) Call DefWindowProc after the event has been processed.
ReturnValue Long When Message.Processed is True, specifies the value you want returned to Windows. This property is ignored when Message.Processed is False.