clIsServer  clQuit

Chapter 2: Bridged Functions

clMessageBox

Description

Brings up a message box with an OK button on the client. On the server, it writes the message to the xlog file, similar to the erm function.

Syntax

clMessageBox (string title, string message);

Parameter

Description

title

Title for the dialog box when running on the client. Placed first in the xlog when run on the server. Can also be a literal string, such as Error.

message

String to display in the text of the dialog box. Placed second in the xlog when run on the server. This can also be a literal string, such as Unable to parse data.

Return value

None.

Examples

Example 13

clMessageBox (“Quit Message”, “Program terminating”);

Example 14

string title;
string message;
string pat_name;
pat_name = getPatientName();
title = "Error!";
message = "Unable to parse data for [" + pat_name + "]";
clMessageBox(title, message)




Copyright © 2005. Sybase Inc. All rights reserved. clQuit

View this book as PDF