If a message is issued with rc non zero, SPFLite will prefix it with "RC=8: "
Because the RC operand is optional, simple success messages can be issued with only the text string operand. For example:
Set_Msg("Normal completion")
is functionally equivalent to:
Set_Msg(OK, "Normal completion")
It is important to understand that RC and message values passed back by other functions (like Get_Line$, for instance) are not automatically passed through to the edit user, even when the RC value is non-zero, signifying a warning or error condition was detected. You must explicitly call Set_Msg yourself if you wish a message to be displayed back to the user once the macro completes execution.
If Set_Msg is followed by any other SPFLite-provided function which itself sets the RC and message values, the values set by Set_Msg will be overridden. If it is your intent to use Set_Msg to pass back a message to the edit user (yourself) that appears on the edit screen, the call to Set_Msg should be the last function you call before issuing a HALT statement. (Or use the HALT statement itself to issue the RC and message string)
|