Contents Up Previous Next

OutString

Purpose
Description
Example
Macro Synopsis
Modules
Related Functions


Purpose

String output (Macro only)

Description

"OutString" displays the given text in the Dataplore ® message window. The data type of such a text is called "string" and consists of a sequence of letters within double quotes ("). String variables are concatenated with text strings by a '+' (as shown below). Numeric variables of type int and float are converted into string variables automatically. This function is available in the macro language only.

Example

Consider the following example demonstrating the various ways of using "OutString":
float a,b,c;
string funcname;
signal s;
funcname="Fnct";
a = 0.1;
b = 3.14159;
s = Fnct(a, b, &c); // c is set by Fnct()
OutString("Result of ");
OutString(funcname);
OutString(" is " + c + ". Parameters were " + a + " and " + b + ".");
return s;

Macro Synopsis

OutString(s);
string s;

Modules

Basic

Related Functions

OutError